-
-
Save benaston/5982746 to your computer and use it in GitHub Desktop.
Judy Git Stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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