ERJAN
ERJAN

Reputation: 24500

'git branch -a' still showing deleted remote branch in the remote repo?

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?

Upvotes: 7

Views: 4307

Answers (1)

eftshift0
eftshift0

Reputation: 30156

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

Upvotes: 15

Related Questions