Shell/Bash: delete branch from remote Example

By

Shell/Bash Example: This is the "delete branch from remote" Example. compiled from many sources on the internet by SimpleTutorials.org

delete branch from remote

// 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 how to delete origin branch

$ git push origin --delete feature/login

delete remote git branch

git push --delete remoteName branchName

delete git branch remote

git push -d origin 

delete remote branch

git branch -r -d remoteBranchName

git delete remote branches in local git

# Fetch changes from all remotes and locally delete 
# remote deleted branches/tags etc
# --prune will do the job :-;
git fetch --all --prune



* Summary: This "delete branch from remote" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others