Why does Git fetch remember and use deleted local tracking branches

58 Views Asked by At

Can you tell me why git seems to remember and use its “fetch memory” for a deleted local repository? I delete a local branch that was tracking a remote, and when that remote is completely rebuilt with new code and merges and I check it out and track it locally, I’m getting the original local/remote code (without updates/changes) if I don’t fetch first. Why does this happen? Why does git checkout the original outdated branch version even after the local branch was deleted? Thank you for your help!

0

There are 0 best solutions below