delete a branch in git
Shell
// delete branch locally
git branch -d localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
$ git branch [name of branch]## 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/logingit branch -d <branch_name>// 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 :serverfix
Also in Shell:
- Title
- how to install gatsby transformer plugin
- Category
- Shell
- Title
- bash edit prompt display appearance
- Category
- Shell
- Title
- remove all iptables rules
- Category
- Shell
- Title
- how to import microsoft.online sharepoint powershell
- Category
- Shell
- Title
- Shell query displays all citizens with an age greater than or equal to 21
- Category
- Shell
- Title
- terminal how to find a directory
- Category
- Shell
- Title
- fingerprint login disabled ubuntu 20.04
- Category
- Shell
- Title
- macos homebrew unattended cask installs
- Category
- Shell
- Title
- not reinstalling packages on docker build
- Category
- Shell
- Title
- xampp shell fonts
- Category
- Shell
- Title
- ufw allow port
- Category
- Shell
- Title
- open pdf command line linux
- Category
- Shell
- Title
- get github profile image
- Category
- Shell
- Title
- how to get mac cpu temp
- Category
- Shell
- Title
- laravel create controller
- Category
- Shell
- Title
- how to set up a git repository locally
- Category
- Shell
- Title
- check if kubernetes is running
- Category
- Shell
- Title
- install zsh debian
- Category
- Shell
- Title
- python print sql in shell_plus
- Category
- Shell
- Title
- git commit ignore eslint
- Category
- Shell
- Title
- could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?
- Category
- Shell
- Title
- angular add component
- Category
- Shell
- Title
- register runner gitlab
- Category
- Shell
- Title
- desktop trigger click bash shell ubuntu
- Category
- Shell
- Title
- how to kill a process in linux
- Category
- Shell
- Title
- git switch branch
- Category
- Shell
- Title
- powershell zip multiple files
- Category
- Shell
- Title
- htaccess route to index.php
- Category
- Shell
- Title
- bash generate random number between
- Category
- Shell
- Title
- ubuntu set scale to 150
- Category
- Shell
- Title
- how to update pip in linux
- Category
- Shell
- Title
- git push to heroku
- Category
- Shell
- Title
- fcm post example curl
- Category
- Shell
- Title
- upgrade django
- Category
- Shell
- Title
- install drush on windoes 10
- Category
- Shell
- Title
- apache virtual host
- Category
- Shell
- Title
- get serial number for server using powreshell
- Category
- Shell
- Title
- split large file into smaller files
- Category
- Shell
- Title
- search by message git
- Category
- Shell
- Title
- set git pull rebase default
- Category
- Shell
- Title
- how to delete services in kubernetes
- Category
- Shell
- Title
- set feh wallpaper
- Category
- Shell
- Title
- find text in linux file
- Category
- Shell
- Title
- install tensorflow
- Category
- Shell
- Title
- pod install ruby: bad interpreter: No such file or directory
- Category
- Shell
- Title
- install jupyter notebook
- Category
- Shell
- Title
- mysqldump
- Category
- Shell
- Title
- rename file linux
- Category
- Shell
- Title
- The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file
- Category
- Shell
- Title
- how to check in which brach we are in git
- Category
- Shell
- Title
- unable to install deno in ubuntu
- Category
- Shell
- Title
- git clone repo with name
- Category
- Shell
- Title
- install docker
- Category
- Shell
- Title
- a2ensite example.
- Category
- Shell
- Title
- edit default port for linux server
- Category
- Shell
- Title
- babel source maps
- Category
- Shell
- Title
- linux merge two pdfs
- Category
- Shell
- Title
- how to revert to log in git
- Category
- Shell
- Title
- bash list of integers
- Category
- Shell
- Title
- bash measure execution time
- Category
- Shell
- Title
- date command in linux
- Category
- Shell
- Title
- how to fix libffi missing in macos
- Category
- Shell
- Title
- powershell get all computers in ou
- Category
- Shell
- Title
- git init
- Category
- Shell
- Title
- git remove Untracked files
- Category
- Shell
- Title
- how to copy ssh key
- Category
- Shell
- Title
- github undo last pushed commit
- Category
- Shell
- Title
- how to make a beep in cmd
- Category
- Shell
- Title
- download images from url terminal
- Category
- Shell
- Title
- how to copy contents of ssh key into clipboard
- Category
- Shell
- Title
- pytype
- Category
- Shell
- Title
- Linux Mint reset xfce-panel
- Category
- Shell
- Title
- installing helm v2 and tiller on minikube
- Category
- Shell
- Title
- check powershell version
- Category
- Shell
- Title
- if else in mac terminal
- Category
- Shell
- Title
- kill process in windows powershell
- Category
- Shell
- Title
- git diff two commits
- Category
- Shell
- Title
- how to reset git branch to a certain commit.
- Category
- Shell
- Title
- react testing library
- Category
- Shell
- Title
- how to update local repo when i make changes to github remote repo
- Category
- Shell
- Title
- linux zip all folders except one
- Category
- Shell
- Title
- join linux to ad domain
- Category
- Shell
- Title
- pip upgrade
- Category
- Shell
- Title
- extract tar.gz ubuntu terminal
- Category
- Shell
- Title
- undo add stage git
- Category
- Shell
- Title
- how to perform mathematical operations in shell script
- Category
- Shell
- Title
- docker remove all images powershell
- Category
- Shell
- Title
- git store credentials
- Category
- Shell
- Title
- git clean cache
- Category
- Shell
- Title
- git clone different name
- Category
- Shell
- Title
- get ip address linux
- Category
- Shell
- Title
- how to access a samba share folder in linux
- Category
- Shell
- Title
- how to push to git hub
- Category
- Shell
- Title
- how to add images to git readme
- Category
- Shell
- Title
- git get repository url
- Category
- Shell
- Title
- how to install wordpress ubuntu 16.04 rosehosting
- Category
- Shell
- Title
- update linux command
- Category
- Shell
- Title
- git set upstream
- Category
- Shell
- Title
- change dns resolver linux
- Category
- Shell
- Title
- git eof config
- Category
- Shell