Hey all,
I'm experiencing some very strange behavior with git using Sourcetree and cannot seem to determine the cause of the issue. The problem began after making a commit and pushing it to a branch that was being tracked in the remote repository.
Now when I open Sourcetree I can no longer see any of my local branches. My IDE lists that I'm working with a detached head.
If I check my remote branches I can see every branch other than the one which I last committed to. However any attempt to pull or fetch from the repo gives me the warning "reference broken" and is unable to update the local ref.
When I look at the repository online all of the branches are there, including my last commit. This repository can be cloned into a new local repository that operates as expected.
Can anyone help me understand what is happening? Any suggestions for moving past this issue would be much appreciated.