Delete remote branch
Remove a branch from the remote repository
git push origin --delete feature/old-branch
More git commands
-
git clean -fdxRemove untracked files and directories (incl. gitignored)
-
git fetch --all --prune --tagsUpdate all remotes and delete stale tracking branches
-
git commit --amend -m 'new message'Rewrite the most recent commit message (local only)
-
git rebase -i HEAD~5Squash, reorder, or edit last 5 commits
-
git stash push -m 'wip: feature-x' -- src/Stash only src/ with a descriptive name