Skip to content

Instantly share code, notes, and snippets.

@drwasho
Created May 5, 2016 02:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drwasho/95a02a78699d2ba87497e0dfee742483 to your computer and use it in GitHub Desktop.
Save drwasho/95a02a78699d2ba87497e0dfee742483 to your computer and use it in GitHub Desktop.
Handy Git Guide for Testing a PR

Git Guide for Testing a PR

Checkout a branch from a remote repo

  1. git remote add morebrownies https://github.com/morebrownies/OpenBazaar-Client.git
  2. git fetch morebrownies
  3. git checkout morebrownies/chat

Checkout a PR from a remote repo

  1. git remote add jjeffryes https://github.com/jjeffryes/OpenBazaar-Client
  2. git fetch jjeffryes
  3. git checkout -b [whateverYouWantToCallTheNewBranch] jjeffryes/clearLocalAdminPanel
    • That will make a local copy of my branch in your git repo
    • git checkout -b clearLocalAdminPanel jjeffryes/clearLocalAdminPanel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment