Quick TipWritten on

Refresh local list of remote branches in git

Because I always forget how to do this:

git remote update origin --prune

What does it do and why would you need this? Well, if you do a lot of feature branches you might want to delete them when they are merged back into the development branch. If you won't do that, you'd have a messy and confusing list of branches where nobody knows, what's currently worked on and what's long been resolved.

And if you don't use the command above… -- well then the list of branches in your local repository will not be updated and you will see a lot of ghost branches hanging around.