arc90 / git-sweep

A command-line tool that helps you clean up Git branches that have been merged into master.
MIT License
2.55k stars 125 forks source link

Make a backup of deleted branches on `cleanup` #22

Open dsbonev opened 10 years ago

dsbonev commented 10 years ago

A backup would be useful when a branch was deleted by accident among other branches. Something similar to:

cp .git/FETCH_HEAD .git/FETCH_HEAD.20140402135859.git_sweep
robmadole commented 10 years ago

This is a great idea. We can even include some rescue instructions in the log for how to get those branches back.