Update remote branch list
git remote update origin --prune
Written by Dimitri
Related protips
2 Responses
If the remote branches don't exist anymore, won't a simple 'git pull' prune the remote branch list?
over 1 year ago
·
I just tested it. No, you will still have the local and the remote branch without any update on that, if the remote branch was deleted. You will have to update your remote list. But git will tell you that it couldn't find a remote fatal: Couldn't find remote ref <branch>
.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#