[vtk-developers] Keeping in fork in sync
Bill Lorensen
bill.lorensen at gmail.com
Wed Mar 18 21:27:38 EDT 2015
Your suggested method to sync my repo with the vtk repo did not work for me.
This is what I needed to do:
Do this once:
git remote add upstream https://gitlab.kitware.com/vtk/vtk.git
To sync:
git fetch upstream
git checkout master
git merge upstream/master
git push
On Tue, Mar 17, 2015 at 10:46 AM, Brad King <brad.king at kitware.com> wrote:
> On 03/17/2015 01:31 PM, Bill Lorensen wrote:
>> How do I keep my fork in sync with the vtk repo?
>
> Whenever you do 'git gitlab-push' to push one of your topics
> it will also fetch 'master' from the main repo and push that
> to your fork along with your topic.
>
> In general you don't need to ever reference 'master' in your
> fork so it doesn't matter whether it stays updated. If you
> do want to update it manually you can do
>
> $ git checkout master
> $ git pull
> $ git push gitlab master
>
> -Brad
>
--
Unpaid intern in BillsBasement at noware dot com
More information about the vtk-developers
mailing list