Skip to content

This is a dumb little library I made because I don't like using autocomplete to delete a branch.

Notifications You must be signed in to change notification settings

jordanmaguire/git_smart_prune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Smart Prune

This is a dumb little library I made because I don't like using autocomplete to delete a branch.

This will run git remote prune origin and then prompt the user to confirm deleting all the branches that have been merged into the current git branch --merged.

By default, master and develop branches will be exempt.

Setup

To call this library from the command line, you have to make the ruby file available in your $PATH.

You'll want to clone this repo somewhere, then symlink the git_smart_prune.rb file somewhere on your $PATH. EG:

chmod +x git_smart_prune.rb
ln -s `pwd`/git_smart_prune.rb ~/bin/git_smart_prune

You can also add an alias to make using this more convenient. EG:

alias gsp="git_smart_prune"

About

This is a dumb little library I made because I don't like using autocomplete to delete a branch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages