Posted by: terryhowe | March 23, 2016

Git Removing stale local brances with git prune

I’m always forgetting how to prune the local branches that have been removed from the remote.  Simple thing, but it isn’t sticking in the brain. Anyway, often when i write about something, I remember it.

git fetch; git remote prune origin

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: