Skip to content

Instantly share code, notes, and snippets.

@JeremyNevill
Created July 6, 2017 13:42
Show Gist options
  • Select an option

  • Save JeremyNevill/be780b3d61fb830e5105ecf9c3b89e72 to your computer and use it in GitHub Desktop.

Select an option

Save JeremyNevill/be780b3d61fb830e5105ecf9c3b89e72 to your computer and use it in GitHub Desktop.

Remove Origin Branches from Local Cache

If you are trying to count your remote origin branches, the local version caches remote branches even if they have been deleted on origin.

git fetch --prune

The command above will fetch and clean up the local cache of origin's branches!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment