git-branch - git delete all local branches - How do I delete a Git branch locally and remotely?
View 3+ more / git / version-control / git-push / git-remote
I want to delete a branch both locally and remotely.
Failed Attempts to Delete a Remote Branch
$ git branch -d remotes/origin/bugfix error: branch 'remotes/origin/bugfix' not found. $ git branch -d origin/bugfix error: branch 'origin/bugfix' not found. $ git branch -rd origin/bugfix Deleted remote branch origin/bugfix (was 2a14ef7). $ git push Everything up-to-date $ git pull From github.com:gituser/gitproject * [new branch] bugfix -> origin/bugfix Already up-to-date.
git branch -D <name-of-branch> git branch -D -r origin/<name-of-branch> git push origin :<name-of-branch>
branch - git clean not removing untracked files - How to remove local (untracked) files from the current Git working tree git-fetch - git fetch vs pull vs rebase - What is the difference between 'git pull' and 'git fetch'? git undo add file - How do I undo 'git add' before commit? git undo add - How do I undo the most recent local commits in Git? git pull remote branch - How do I force “git pull” to overwrite local files? git delete remote branch - How do you create a remote Git branch? git-checkout - git checkout remote branch and track - How do I check out a remote Git branch? git change remote branch - How to change the URI (URL) for a remote Git repository? git-branch - git create remote branch - How do I push a new local branch to a remote Git repository and track it too? version-control - git rename file - How do I rename a local Git branch?