This content originally appeared on Harry Wolff and was authored by Harry Wolff
Git is a wonderful version control system. It’s light, nimble, and fast. It makes managing code amongst many developers a dream.
Unfortunately it has a fair share of quirks.
One of the quirkiest quirks that I’ve run into a couple times now is an issue with remote git branches.
When a remote git branch is deleted from the server your local repository doesn’t update its references.
The easy solution is to run this command:
<code>git remote prune origin</code>
This prunes and removes all remote branches that no longer exist.
<a href="http://kpumuk.info/development/memo-2-useful-git-tricks-with-remote-branches/">Full credit to Dmytro Shteflyuk for this tip.</a>
This content originally appeared on Harry Wolff and was authored by Harry Wolff

Harry Wolff | Sciencx (2011-10-13T11:41:06+00:00) Prune Remote Git Branches. Retrieved from https://www.scien.cx/2011/10/13/prune-remote-git-branches/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.