Uncle P's corner of git sweetness Git resources Interactive guides Learn Git Branching Try Git Git Real, a video and interactive git course Top N git commands used in a Pull Request based Workflow Initial commands (cloning, fetching, pulling banching, etc) Cloning a remote repository git clone [git repo url] Listing local branches git branch --list Checking out a branch git checkout -b [branchname] Deleting a branch git branch -d [branchname] Discarding any non-commited changes in your current branch git reset --hard Pushing your changes (typically after a rebase) to the remote branch by force git push origin [branch name] -f Discarding any non-commited changes in your current branch git rebase origin [branchname] Making your local branch point to the current HEAD on the remote branch git reset origin [branch name] Checking out a new branch that exists in remote, but not locally. This is extremely useful when starting new development on a branch created already on the remote repository. git checkout [branch name]