I have a personal git repo on a server ("Server Repo"). It cannot see a branch on its central remote repo ("Origin") that I pushed from a personal git repo on another computer ("Personal Repo").
Server Repo (personal repository):
$ git branch -a
* master
remotes/origin/master
Origin (central repository):
$ git branch -a
* master
update
Personal Repo (personal repository):
$ git branch -a
* update
master
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/update
On Server Repo, I've tried $ git fetch --all
but all I get is Fetching origin
with no results.
$ git fetch -v --all
yields:
Fetching origin
= [up to date] master -> origin/master
I've never seen this issue before. I'm having a lot of issues searching for this problem because all Git Fetch issues seem to assume that the user is doing something wrong. As far as I can tell, Git is failing to recognize remote branches and I don't know what to do about it.
I've re-cloned from Origin into a new folder and the branches appear as expected then. I'm not sure what it is about re-cloning a repo from Origin that would get it to work properly. I have verified that in Server Repo the remote Origin is in fact correct and has the correct path (it's an absolute path on the same machine).