Git Cheat Sheet
This Git Cheat Sheet is a work in progress . If you'd like to suggest an addition then please comment below. Passwords Update your password when it changes .. an easy way which prompts for your new password git pull Ignoring files and directories Place a .gitignore file in your top level directory with one entry per row e.g. test_output Whenever a directory called "test_output" is found, git will not consider it for changes. Branches View all the local branches git branch View all the remote branches git branch -r View all the remote AND local branches git branch -a Switch to the branch <branch-name> git checkout <branch-name> Find out branch you are on git branch (* row in results denotes the current branch) Stashing View all the stashes git stash list Stash changes git stash / git stash save Restore a stash that was not the last one stashed (need to manually remove from the list) git