I have a local git repository that I use in combination with a (private) remote git repo. The code I’m working on comes originally from an open-source project on github, so I added it as a remote to the github repository (with git remote add).
I noticed (with git remote -v) that for both, fetch and push, the remote repository has been added. According to another question here on SO, it’s not possible to only have a fetch remote repo. However, I only want to fetch from github, not push.
So, my question is: the moment I do a git push, does it push to all the remote repositories (including the one from github, in this case), or only to my first remote repository?
Will get you what you are looking for.