[vtk-developers] Keeping in fork in sync

David Gobbi david.gobbi at gmail.com
Wed Mar 18 22:00:07 EDT 2015


Hi Bill,

There must be something very strange about your setup.  Can you
post your .git/config?

You shouldn't have to add "upstream" as a new remote, because
"origin" should already point to https://gitlab.kitware.com/vtk/vtk.git

Also, after running SetupForDevelopment.sh, "gitlab" should be set
as a remote for your fork https://gitlab.kitware.com/lorensen/vtk.git

I can sync my fork with the vtk master without even doing a local
checkout of master:

git fetch origin
git push gitlab origin/master:master

Of course, if I wanted to checkout master, I'd use Brad's example.

 - David



On Wed, Mar 18, 2015 at 7:27 PM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150318/a26e7b78/attachment.html>


More information about the vtk-developers mailing list