Skip to content

Instantly share code, notes, and snippets.

@Art4
Created August 29, 2014 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Art4/0453e58952857b431f10 to your computer and use it in GitHub Desktop.
Save Art4/0453e58952857b431f10 to your computer and use it in GitHub Desktop.
cd /path/to/bare-repo.git && git remote prune origin && git fetch --prune origin +refs/heads/*:refs/heads/* && git reset --soft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment