delete branch git
// delete branch locally
git branch -d localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
// 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//delete locally
git branch -d branch_name
//delete remotely
//git push <remote_name> :<branch_name>
// ex. git push origin :serverfixgit branch -d <branch_name>## git version 2.25.1
## Deleting local branches
git branch -d feature/login
## Deleting remote branches
git push origin --delete feature/login
## Deleting both a local and a remote branch
## They are completely separate objects in Git. But
git branch -d feature/login && git push origin --delete feature/login$ git push <remote_name> :<branch_name>
Also in Shell:
- change git remote
- convert excel to csv command line linux
- how to merge git branch to master
- install macos on vmware ubuntu
- laravel create controller
- git fklow init
- powershell.exe location
- how to uninstall htcondor
- how to remove untracked files in git
- linux see drivers
- choco list installed
- rejected master -> master (non-fast-forward)
- checking for existing ssh keys
- how to install openai gym in ubuntu
- ps -aux command in linux
- bash comment
- git ignore node_modules
- space in dock mac
- Fatal error in launcher:
- install postgres
- install virtualenv conda
- mvn build project
- how to check installed packages in linux command
- how to undo a modified file in git