Created
December 16, 2010 17:56
-
-
Save vijaydev/743727 to your computer and use it in GitHub Desktop.
git
This file contains 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
git remote prune origin - to remove a deleted remote branch. | |
git rebase -i - interactive rebase with options to pick, squash, discard and reorder commits. | |
git update-index --assume-unchanged | |
Undoing a merge: | |
$ git pull $REMOTE $BRANCH | |
# uh oh, that wasn't right | |
$ git reset --hard ORIG_HEAD | |
# all is right with the world | |
git push -u remote_name branch_name - to make a local branch_name as a remote branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment