On Fri, Oct 25, 2019 at 12:17:26PM +0200, Martin Nicolay wrote: > > $ git fetch origin master:refs/remotes/origin/master > > I thought it would work, but it works only once. On the second time the ref > for the remote branch is deleted. It seems git is confused by specifying a > ref it expect to manage itself. It seems like a bad interaction with `fetch.prune` (I don't have it set, and the problem doesn't appear, but if I set it, I can reproduce your issue). I'm not sure why, though. It's true that the ref _is_ mentioned in the configured refspec for origin, but we shouldn't be looking at that refspec at all (since we have a refspec on the command line). -Peff