Skip to content

Instantly share code, notes, and snippets.

@brianzelip
Created November 7, 2022 10:44
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 brianzelip/c694511f29dadca92d8693f2b17060bf to your computer and use it in GitHub Desktop.
Save brianzelip/c694511f29dadca92d8693f2b17060bf to your computer and use it in GitHub Desktop.
Review or extend a feature branch on a fork

Review or extend a feature branch on a fork

Review a feature branch on someone's fork of upstream, not upstream itself

git remote add user git@github.com:theirusername/reponame.git
git checkout theirusername/theirbranch

Make changes to a feature branch on someone's fork of upstream, not upstream itself

git remote add user git@github.com:theirusername/reponame.git
git fetch theirusername
git checkout -b mynamefortheirbranch theirusername/theirbranch

See also https://stackoverflow.com/a/9153737/2145103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment