How do I keep my fork updated?

OC2PS February 19, 2015

So, there's this public repo on GitHub. I have forked it on Github and cloned my fork locally using SourceTree.

I have added the original repo as a remote called upstream.

How can I ensure that my fork stays updated/synched with the original repo?

1 answer

1 vote
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2015

You need to pull the changes from it periodically. Tools\Options\"Check default remotes for updates every N minutes" makes SourceTree do automatic fetches in the background, which puts red numbers on your pull button when there are new changes.

OC2PS February 19, 2015

Thanks Balazs. Do I need to set upstream as the Default remote then? Or should origin continue to be the Default remote?

Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2015

Not sure how this works if you have multiple remotes. Try. :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events