Answers for "github prune branches"

3

git prune local branches

# for pruning of local branches that have been deleted on remote
git remote prune origin

# for checking local branches and if they can be deleted
# because they have been merged into another branch already
git branch --merged >/tmp/merged-branches && \
  vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches
Posted by: Guest on September-30-2020
0

git prune local branches

npx git-removed-branches --prune
Posted by: Guest on June-16-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language