1

enter image description here

^ For example, you can see that after I run git br (alias for git branch)

I no longer have the fix/add-themed-validation branch, I deleted it.

However when I try to check out a different branch with a similar name, the fix branch is in my auto complete.

Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
  • 1
    This seems more related to you shell interpreter than git – gogaz Jan 10 '19 at 16:13
  • Possible duplicate of [git remote branch deleted but still appears in 'branch -a'](https://stackoverflow.com/questions/5094293/git-remote-branch-deleted-but-still-appears-in-branch-a) – phd Jan 10 '19 at 18:53
  • https://stackoverflow.com/search?q=%5Bgit%5D+remove+stale+branches – phd Jan 10 '19 at 18:53

1 Answers1

2

That probably the one from a remote (e.g. origin). You need to remove that one from the remote and "prune"

git fetch --prune
Julian
  • 33,915
  • 22
  • 119
  • 174