As F
is a fork of A
, you can just continue to use your local clone of A
to push to F
. To do that, you simply need to add your fork as a remote:
git remote add fork git@github.com:user/fork.git
Then you can do git fetch fork
to fetch from your fork, and git push fork master
to push to the master branch of the fork instead of the original repository.
If you prefer to have your fork as the repository named origin
, you can also rename them and give the original repository A
the name upstream
. That is how the repositories are traditionally named. To rename them, you can do this:
git remote rename origin upstream
git remote rename fork origin
Now, your fork is named origin
, and the fork’s original repository A is available as upstream
.