Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 658 Bytes

git.md

File metadata and controls

24 lines (15 loc) · 658 Bytes

Git

Delimb

This adds a command so you can run git delimb and it will remove local branches that have been merged in and are no longer of use. Often this is more efficient than running git fetch --prune. It also protects master and dev branches.

Open your global git config

git config -e --global

Add delimb alias

Note: This will check against the current branch you're on.

[alias]
	delimb = "!git branch --merged | grep  -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"

Resources