Skip to content

Instantly share code, notes, and snippets.

@pjcozzi
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjcozzi/2706c4e315adf1addc9c to your computer and use it in GitHub Desktop.
Save pjcozzi/2706c4e315adf1addc9c to your computer and use it in GitHub Desktop.
Test remote git branch
git remote add tmp-remote [remote]
git fetch tmp-remote
git checkout -b tmp-branch tmp-remote/[branch]
// ...
git checkout master
git branch -d tmp-branch
git remote rm tmp-remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment