Created
April 25, 2009 07:58
-
-
Save forest/101552 to your computer and use it in GitHub Desktop.
Git Cheat. #git #cheat
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
# create a branch | |
git branch <branch> | |
# delete a branch | |
git branch -d|D <branch> | |
# go back to master | |
git checkout master | |
# merge branch to master | |
git merge --squash <branch> | |
git merge --squash -s resolve <branch> | |
# clean up messed up merge, etc. | |
git checkout . | |
git clean -d | |
# init and update submodules | |
git submodule init | |
git submodule update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment