nqminhuit / gis

Java Command Line Application which extends Git for supporting git-modules
1 stars 0 forks source link

[feature] Clean up local merged branch #12

Closed nqminhuit closed 1 year ago

nqminhuit commented 2 years ago

There will be a lot of unused branches on local repositories, provide a simple command to clean up them. Ask for user's confirmation.

git command:

git branch --merged=master | grep -v "^\* master" | xargs -n 1 -r git branch -d
nqminhuit commented 1 year ago

how to specify main working branch? develop vs master vs main?