[petsc-dev] git repo question

Satish Balay balay at mcs.anl.gov
Fri Aug 27 10:01:11 CDT 2021

Perhaps 'git branch --unset-upstream' got invoked somehow?

You can check .git/config to see if you have an entry:

[branch "adams/landau-multiple-grids"]
        remote = origin
        merge = refs/heads/adams/landau-multiple-grids

If not - you can fix by:

git branch -u origin/adams/landau-multiple-grids


On Fri, 27 Aug 2021, Mark Adams wrote:

> I have a branch with and MR in the repo, but my branch does not seem to
> know it is on origin:
> (base) 10:42 *adams/landau-multiple-grids* ~/Codes/petsc$ git status
> On branch adams/landau-multiple-grids
> Untracked files:
>   (use "git add <file>..." to include in what will be committed)
> src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu.bak
>  ...
> There is no "=" in the prompt and no, eg, "Your branch is up to date with
> 'origin/adams/landau-ex2-gpu-paper'."
> There seems to be something wrong with this branch.
> Any idea what is wrong?
> Thanks,
> Mark

More information about the petsc-dev mailing list