$ git --version
$ git -v
$ git update
$ git update-git-for-windows
$ git clone https://github.com/VigneshGuhan/GithubDemo.git
$ git branch
$ git branch branch1
$ git checkout branch1
or
$ git checkout -b branch2
$ git add .
$ git status
To commit but not stage:
$ git commit -m "<message>"
To commit and stage
$ git commit -am "<message>"
$ git ls-files
$ git push
Fetch + merge = Pull
$ git pull
To create a new Git repository
$ git init
Find difference between current version and last committed version
$ git diff
$ git diff --staged
$ git diff firstbranch..secondbranch
To quit from vim click q
Get list of all commits
$ git log
$ git log --oneline
$ git log --oneline --reverse
$ git show HEAD
$ git –help
$ git show <commit id>