Restart all the branches in your Git repo
Shell
Latest commit 28d9a24 Apr 28, 2013 @nevik Fix branch list to use plumbing commands
Fix the acquisition of current branch and branch list to no longer use
`git branch` but use the appropriate plumbing commands (`git symbolic-ref` and
`git for-each-ref`) instead.
Permalink
Failed to load latest commit information.
.gitignore Initial commit Apr 28, 2013
LICENSE Initial commit Apr 28, 2013
README.md
git-fresh-start.sh

README.md

git-fresh-start

Restart all the branches in your Git repo

What does it do?

This script's main task is to transplant currently existing branches, by simply using their latest commit.

If you choose, a new empty root commit is created, and all branches are created as direct descendants of that root commit. Otherwise every new branch will have its own root (they'll be orphan branches) and contain exactly one commit each.