Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.35 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.35 KB

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).