git branch
git branch --all
git checkout <branchname>
git checkout --force warning this may overwrite some uncommitted changes
git checkout -b <newbranch>
git pull
git fetch --all
git status
git diff
git add --all or git add .
git reset
git commit -m "my commit message"
got commit -a -m "my commit message"
git log
git log -1
git log -p -1
git push
git push --set-upstream origin <branchname>
git merge <branchname>
git revert <commitid>
git revert <commitid> -m 1
git checkout path/to/file
git checkout <commitid> path/to/file
git reset --hard warning this will remove all tracked but uncommitted changes
git mergetool prerequesit having a merge tool installed & setup with git, check this article for setting up kdfif3
git branch -d <branchname>
git branch | grep -v "master" | xargs git branch -d