Git Prune for Cleanup

When you or a team member removes a few branch from your remote git repository as part of cleanup and you still see the branches on your local environment you will have to run the git command below to remove (prune) all the branches from your local that do not exist on the remote repository anymore.

git fetch -p

Author: Ranjeesh

I am a computer geek. I love computers and electronics. I love to share my knowledge and experiences with everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *