Skip to content

Instantly share code, notes, and snippets.

@benaston
Last active December 19, 2015 16:18
Show Gist options
  • Save benaston/5982746 to your computer and use it in GitHub Desktop.
Save benaston/5982746 to your computer and use it in GitHub Desktop.
Judy Git Stuff
#Branching
Show All Branches: `git branch`
Switch to branch: `git checkout <branch name>`
New branch: `git checkout -b <branch name>`
Delete branch: `git checkout -D <branch name>`
Difference between two branches: `git diff --name-status <branch1>..<branch2>`
Pull in my work from another branch: `git pull . master`
#Moving through time
Show changes over time: `git log`
#View Changes
`git status`
#Revert To Build
#Bash Shortcuts
Clear Screen: CTRL+L
Clear line: CTRL+U
History: history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment