Skip to content

Instantly share code, notes, and snippets.

@brianzelip
Created November 7, 2022 10:44
Show Gist options
  • 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 [email protected]: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 [email protected]: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