Skip to content

Instantly share code, notes, and snippets.

@jarvys
Last active August 29, 2015 14:00
Show Gist options
  • Save jarvys/11240019 to your computer and use it in GitHub Desktop.
Save jarvys/11240019 to your computer and use it in GitHub Desktop.
make an existed local branch to track a remote branch
# The local branch is named LOCAL and the remote branch is named REMOTE
$ git checkout -b LOCAL-track origin/REMOTE
$ git branch -d LOCAL
$ git branch -m LOCAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment