Hero Image

How to make git sync local branches with remote

I just figured this out, I use git to make remote branches the same as local ones, useful if I have done lots of local branches that are stale and need to be murdicated:

git fetch --prune