Skip to content

Instantly share code, notes, and snippets.

@jakejarvis
Last active February 19, 2019 16:22
Show Gist options
  • Save jakejarvis/8c85516b8ac5a8c4fcd77c1024b4abe7 to your computer and use it in GitHub Desktop.
Save jakejarvis/8c85516b8ac5a8c4fcd77c1024b4abe7 to your computer and use it in GitHub Desktop.
Forking a repo and pushing new branch for pull requests
git init
git clone git@github.com:jakejarvis/twofactorauth.git
git remote add --track master upstream git@github.com:2factorauth/twofactorauth.git
git fetch upstream
git checkout -b add-something upstream/master

# make changes

git add .
git commit -m "blah blah some changes blah"
git push -u origin add-something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment