S
S
SagePtr2018-09-13 18:01:17
git
SagePtr, 2018-09-13 18:01:17

How to quickly update a fork on github?

If a fork contains multiple branches that are updated upstream, is it possible to quickly update all branches on the fork that are behind upstream and can be fast-forwarded?
Or for each updated branch manually do first `checkout`, then `pull`, then `push`?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrej Gessel, 2018-09-14
@andiges

I have never asked this question, but reading the man page now ( https://git-scm.com/docs/git-push) you can try something like:

# в "git remote -v" должно быть 2 репозитория:
# в этом примере origin это оригинал,
# а fork, это ваш форк
git fetch origin
git push fork --all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question