Horje
git delete branch Code Example
delete a git branch
# delete branch locally
git branch -d <branchName>
#example 
git branch -d test
# you add ,commit but not merged and can not delete the branch , use this one
#just use capital D 
git branch -D <branchName> 
#example 
git branch -D test
git delete remote branch
# Delete remote branch
git push origin -d remote_branch_name

# Delete local branch
git branch -d  local_branch_name

# Force delete if getting merge error
git branch -D  local_branch_name
git delete branch
git branch -D <branch name>
delete local branch
git branch -d feature/git
How to delete a Git branch locally and remotely
$ git push -d <remote_name> <branchname>
$ git branch -d <branchname>

// In most cases, <remote_name> will be origin.




Shell

Related
jq command in linux Code Example jq command in linux Code Example
debian mark package as manually installed Code Example debian mark package as manually installed Code Example
connect to aws ubuntu gui from windows Code Example connect to aws ubuntu gui from windows Code Example
git create master branch in empty repository Code Example git create master branch in empty repository Code Example
debian list packages automatic install Code Example debian list packages automatic install Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8