Skip to content

Instantly share code, notes, and snippets.

@nickarthur
Forked from vijaydev/gist:743727
Created April 29, 2018 03:40
Show Gist options
  • Save nickarthur/c0c3299a20a8865e8977e212df670b14 to your computer and use it in GitHub Desktop.
Save nickarthur/c0c3299a20a8865e8977e212df670b14 to your computer and use it in GitHub Desktop.
git
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