NB: This also works for the case where you'd like to contribute to the original repo, but you've already forked a fork of the original repo.
Let johndoe/coolrepo be the name of the fork that you'd like to contribute to.
Let master be the branch of johndoe/coolrepo that you'd like to start working from.
- Choose a name for a new remote that you'll use in subsequent steps. Let's use
yupstream. git remote add yupstream [email protected]:johndoe/coolrepo.gitgit fetch yupstream master- Choose a name for a new branch that will contain the fork that you'd like to contribute to. Let's use
feature/add-to-coolrepo.