How to Delete Local/Remote Git Branches
// 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$ git push origin --delete feature/login
$ git branch -a
# *master
# b1
# remote/origin/master
# remote/origin/b1
$ git push origin --delete b1
# [...]
# - [deleted] b1$ git branch -a
# *master
# b1
# remote/origin/master
# remote/origin/b1
$ git push origin --delete b1
# [...]
# - [deleted] b1
$ git branch -r | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | xargs git branch -d
Also in C++:
- linux show path
- ionic capacitor ios live reload
- linux change user password
- osp it digital solutions
- git fetch rebase
- ubuntu no bluetooth found
- vim replace multiple lines
- how to edit crontab in linux
- powershell copy-item specify credentials
- mariadb install on ubuntu 20.04
- git create branch
- how to remove wine32 linux
- install react dependencies
- deleted ssh folder?
- comprimir directorio linux
- sed replace word with newline
- git exclude some files from git commit
- bash swap two columns in a file
- asp.net core linux systemd
- slack text substitution mac does not work
- how to install latest version of npm package
- linux alias bashrc
- remove snap package
- git check differences between two projects