6

I have uploaded (pushed the entire local branch) to the remote repo. I have merged it with master and deleted it in the remote repo (on github.com)

Running git branch -a still shows it in the console:

$ git branch -a
* master
  remotes/hivauz/master
  remotes/hivauz/new_local_branch

What's the reason, does github need time to update it?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
ERJAN
  • 23,696
  • 23
  • 72
  • 146
  • 3
    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) – mkrieger1 Dec 17 '18 at 19:44
  • 1
    Additionally: https://stackoverflow.com/questions/37664226/git-fetch-origin-prune-doesnt-delete-local-branches/37664362 – msanford Dec 17 '18 at 19:45
  • Possible duplicate of [How do I delete a Git branch both locally and remotely?](https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-both-locally-and-remotely) – phd Dec 17 '18 at 22:34

1 Answers1

13

You have to run git fetch --all --prune in order to remove the remote branch reference in your local environment.

Community
  • 1
  • 1
eftshift0
  • 26,375
  • 3
  • 36
  • 60