- On Github we can create a repository and clone it locally in the desktop:
# git clone repository-URL
# git status
# git commit -a -m “Changing readme file”
# git config --list
# git log
# git log -2 (look at the last 2 entries)
# git remote -v (verbose)
#git pull
# git push origin branch # git push origin master
Change directory to the repo directory and type
# git init
# git add filename
Or
# git add . (add everything!)
# git commit -m ‘message’
Local:
# git remote add origin repo-URL
# git pull origin master
# git branch branch-name
# git branch
# git checkout branch-name
# git merge branch-name # gitk (shows a graph of the history)
# git branch -d branch-name
Or
# git branch -D branch-name