- Published on
After you have been developing a project for some time your local git repo becomes detached from the repository on 'origin'. Having loads of local branches that are not needs because they have been merged in already. Or all of the remote branches that are no longer on the remote. There are a few commands you can run to clean things up a bit when you feel things are getting cluttered.