Using GIT
GIT works in the following life cycle unmodified -> modified -> staged -> repeat the following is an example of pulling a repo making changes then pushing the changes Global Setup
git config --global user.name "Curtis"
git config --global user.email "email@yahoo.com"
git config --list
get the status of the git
git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
example create and push
git init
Initialized empty Git repository in /Kodi-NPR-One/.git/
git remote add origin https://github.com/mcurtis789/Kodi-NPR-One.git
git pull origin master
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 13 (delta 0), reused 13 (delta 0), pack-reused 0
Unpacking objects: 100% (13/13), done.
From https://github.com/mcurtis789/Kodi-NPR-One
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
git push -u origin master
Everything up-to-date
Branch 'master' set up to track remote branch 'master' from 'origin'.
*Make Changes*
add all files
git add .
warning: LF will be replaced by CRLF in default.py.
The file will have its original line endings in your working directory.
or add a single file
git add default.py
git add npr.py
warning: LF will be replaced by CRLF in default.py.
The file will have its original line endings in your working directory.
git commit
[master a96d41f] modified: default.py modified: npr.py
2 files changed, 51 insertions(+), 39 deletions(-)
git push origin manpr.pyster
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.04 KiB | 1.04 MiB/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/mcurtis789/Kodi-NPR-One.git
7076050..a96d41f master -> master