Skip to content

Instantly share code, notes, and snippets.

@francois-blanchard
Last active August 24, 2016 09:49
Show Gist options
  • Select an option

  • Save francois-blanchard/4f1315aa8df278f4c684070551c7fd68 to your computer and use it in GitHub Desktop.

Select an option

Save francois-blanchard/4f1315aa8df278f4c684070551c7fd68 to your computer and use it in GitHub Desktop.
How to clean branch git ? With git-sweep !

How to clean local branch git ? With git-sweep !

Install git-sweep

git-sweep it's a python library

Find documentation here

Use Pip to install :

pip install git-sweep

Try it for yourself

safely

git-sweep preview

Real

git-sweep cleanup

Other options

Skip branch

git-sweep cleanup --skip=develop

Remove only local branch

git remote add local $(pwd)
git-sweep cleanup --origin=local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment