Skip to content

amaslenn/git-sculpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis CI Code Climate Issue Count

git-sculpt

Tool for removing merged local branches. Extremely useful in case when changes are incorporated into mainline by rebase.

Tool removes branch only if it thinks it is safe.

Quick installation

Go to the latest release to download binaries.

Examples

Remove single branch feature1:

git sculpt feature1

Remove branch feature2 using develop as base:

git sculpt --base develop feature2

Remove all local branches (keeps all not safe for removal):

git sculpt --all
git sculpt --all -i		# will ask confirmation for removal

Build

The following command will trigger cross platform build for amd64 for macOS, Linux and Windows.

make

How it works

Similar to what real rebase does: search for merge base, then calculate patch-id for all commits in local branch and try to find all of them in the base branch (master by default).