Answers for "git delete local branches older than"

1

git delete local branch except master

git branch | grep -v "develop" | grep -v "master" | xargs git branch -D
Posted by: Guest on October-05-2021
1

git delete local branch

# Delete remote branch
git push origin -d remote_branch_name

# Delete local branch
git branch -d local_branch_name

# Force delete if getting merge error
git branch -D local_branch_name
Posted by: Guest on March-07-2022

Code answers related to "git delete local branches older than"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language