Answers for "delete git branch from local and remote"

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
32

delete branch git

//delete locally
git branch -d branch_name

//delete remotely
//git push <remote_name> :<branch_name>
// ex. git push origin :serverfix
Posted by: Guest on May-25-2020
0

git delete branch

$ git branch -d <branchname>
Posted by: Guest on June-21-2021
0

delete branc in origin

git push origin --delete test
Posted by: Guest on October-01-2020
0

remove branch git

Git: Remove Branch  & Remotely
Posted by: Guest on August-11-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 "delete git branch from local and remote"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language