0

In GIT I removed remote branch:

git push origin :my_removed_branch

But if other client will do this:

git branch -a

He will see the removed branch.

...
remotes/origin/master    
remotes/origin/my_removed_branch

How do I get other customers stopped to see the removed branch?

Git version: 1.9.5

Sprinter
  • 717
  • 5
  • 11

2 Answers2

1

He need to run git fetch --prune to delete all branches that doesn't have their counterparts on server.

Hauleth
  • 22,873
  • 4
  • 61
  • 112
0

Agree with @hauleth's answer that you need to prune.

If you want to perform automatic pruning when performing a git pull or fetch you may want to read this stackoverflow answer in regards to automatically having branches pruned without having to manually call it

Community
  • 1
  • 1