Answers for "git delete branche local"

167

delete local branch

// delete branch locally
git branch -d localBranchName

//delete local branch that is unmerged
git branch -D localBranchName

// delete branch remotely
git push origin --delete remoteBranchName
Posted by: Guest on April-07-2020
1

git delete branch

## Deleting local branch; branch is not fully merged
git branch -D feature/login
Posted by: Guest on February-08-2021
0

git delete local branch

[alias]
  gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"
Posted by: Guest on May-15-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language