So, imagine that I have a local repository that I cloned from some source. During my internal clone, the source had four branches: featureA, featureB, featureC and the master . If I make changes to the beginning that remove the featureA branch, I expect to see something about this that will be removed in the next release:
$ git pull origin
However, what happens, I donβt see anything and when I try to pull this particular branch using
$ git attribute pull originA
I get the following error:
fatal: Could not find remote refA function
fatal: the remote end hung up unexpectedly
This makes perfect sense, since the branch has actually been removed from the remote, so yes, ref no longer exists, but I wonder why I did not receive a notification about this fact. My .git / config for the remote device looks like this:
[remote "origin"]
fetch = + refs / heads /: refs / remotes / origin /
url = cjames@svn.perecep.com: /data/git/perecep.git
I wrote a small shell script that uses git ls-remote along with exiting git branch -r to detect remote refs whose branches no longer exist on the server and tell me if I want to delete them, but I wonder if I do Am I something inherently wrong here?
git
Newgituser
source share