I have a github fork, which I have cloned onto my computer. On the original project, I have opened many PRs, and each of them correspond to their own branch (I don't use master
). From time to time, I occasionally run the following command:
git fetch upstream && git merge upstream/master --no-edit
(upstream
is the original repository).
The command above works for updating the current branch that I am on. Is there a way to do the same for all my branches at once? Currently, to achieve the same behavior, I have to git checkout
to all of the respective branches, and then do the sync, which I find quite tedious.
(I am quite new to git
, so I would appreciate a good amount of explanation in an answer)