git clone -b <branch-name> <repo name>
git remote add <remote name> <remote url>
git remote remove <remote name>
- Stage hunks (May need to edit hunks with editor)
- Commit (Opens editor for message)
git commit --fixup <commit id to fixup> -m <additional fixup message>
git push <remote> <commit>
- Just fetch from remote (Not merge)
git statsh pop
git statsh apply
git diff <commit 1> <commit 2>
- Current unstaged on particular file
- Staged changes on a particular file
git diff --staged -- <file>
- Checkout a branch (pre-existing)
- Create and checkout to a new branch
- Reset unstaged changes on a file
- Reset Local Commits, commits not pushed
git reset --hard origin/<branch_name>
git config pull.rebase true