For the same centralized git repository, I created 2 local repositories via git clone
; after working for a while, I did git pull --all
so by right the two local repositories are the same.
However, there's a discrepancy --
From working folder A
, in git bash command prompt, I can see a remote branch 'athos/ticket-1234':
$git branch -r
...
origin/athos/ticket-1234
...
and can check it out:
$git checkout athos/ticket-1234
Switched to a new branch 'athos/ticket-1234'
branch 'athos/ticket-1234' set up to track 'origin/athos/ticket-1234'.
While from working folder B
, in git bash command prompt, I can not see the remote branch 'athos/ticket-1234', also can not check it out:
$git checkout athos/ticket-1234
error: pathspec 'athos/ticket-1234' did not match any file(s) known to git
I'm curious, what could happened, how could I find the root cause, and solve the issue?
Note: we have a coding practice that after a feature branch is merged back into the master
branch, the developer shall delete the branch. So athos/ticket-1234
could be deleted by me, but I'm not sure now, as it appears somewhere but disappeared somewhere else.