Skip to content

Instantly share code, notes, and snippets.

@thomelane
Last active February 7, 2019 06:27
Show Gist options
  • Save thomelane/02d32342258d0aaf3a7f48314063f6a3 to your computer and use it in GitHub Desktop.
Save thomelane/02d32342258d0aaf3a7f48314063f6a3 to your computer and use it in GitHub Desktop.
Git Commands
# Rename branch (local and remote)
git branch -m new_name
git push origin :old_name new_name
git push origin -u new_name
# checkout PR on github
git clone https://github.com/apache/incubator-mxnet.git
git fetch origin pull/13647/head:lipnet
git checkout lipnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment