[petsc-dev] why is this happening?

Barry Smith bsmith at mcs.anl.gov
Thu Oct 1 14:18:21 CDT 2015


  This worked

$ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
~/Src/petsc (master=) arch-afterimage
$ git branch -D dalcinl/petscdraw
Deleted branch dalcinl/petscdraw (was 43f0a1b).
~/Src/petsc (master=) arch-afterimage
$ git pull
Already up-to-date.
~/Src/petsc (master=) arch-afterimage
$ git checkout dalcinl/petscdraw
Branch dalcinl/petscdraw set up to track remote branch dalcinl/petscdraw from origin.
Switched to a new branch 'dalcinl/petscdraw'
~/Src/petsc (dalcinl/petscdraw=) arch-afterimage


> On Oct 1, 2015, at 2:13 PM, Jed Brown <jed at jedbrown.org> wrote:
> 
> Barry Smith <bsmith at mcs.anl.gov> writes:
> 
>> $ git fetch
>> ~/Src/petsc (master=) 
>> $ git checkout dalcinl/petscdraw
>> Switched to branch 'dalcinl/petscdraw'
> 
> Evidently this branch existed and was not set to track
> origin/dalcinl/petscdraw.  I'd have to know how this local branch was
> created to explain why it's not tracking the remote branch.  You can
> check if they are the same commit, then delete your local branch and
> check it out again (which will make it track) or use the command below
> to make it track.
> 
>> ~/Src/petsc (dalcinl/petscdraw) 
>> $ git pull
>> There is no tracking information for the current branch.
>> Please specify which branch you want to merge with.
>> See git-pull(1) for details
>> 
>>    git pull <remote> <branch>
>> 
>> If you wish to set tracking information for this branch you can do so with:
>> 
>>    git branch --set-upstream-to=origin/<branch> dalcinl/petscdraw
>> 
>> ~/Src/petsc (dalcinl/petscdraw)
>> $ git branch -a | grep dalcinl/petscdraw
>> * dalcinl/petscdraw
>>  remotes/origin/dalcinl/petscdraw
>> ~/Src/petsc (dalcinl/petscdraw) 




More information about the petsc-dev mailing list