Skip to main content
Added missing header to last important block describing what to be done after deleting remote branch
Source Link
ino
  • 2.7k
  • 1
  • 20
  • 33

Fetch changes

Fetch changes

Reverted the local delete to `-d` instead of the `-D` that someone changed it to.
Source Link
Matthew Rankin
  • 461.4k
  • 39
  • 130
  • 166
git push -d <remote_name> <branchname>   # Delete remote
git branch -Dd <branchname>               # Delete local
git push -d <remote_name> <branchname>   # Delete remote
git branch -D <branchname>               # Delete local
git push -d <remote_name> <branchname>   # Delete remote
git branch -d <branchname>               # Delete local
edited body
Source Link
git push -d <remote_name> <branchname>   # Delete remote
git branch -dD <branchname>               # Delete local
git push -d <remote_name> <branchname>   # Delete remote
git branch -d <branchname>               # Delete local
git push -d <remote_name> <branchname>   # Delete remote
git branch -D <branchname>               # Delete local
Clarify summary.
Source Link
Mateen Ulhaq
  • 27.8k
  • 21
  • 121
  • 155
Loading
deleted 5 characters in body
Source Link
S. C.
  • 224
  • 4
  • 15
Loading
Post Made Community Wiki by blackgreen
Fix mistake in `push <repo> :<branch>` cmd in Mathew's supplemental section of this reply.
Source Link
ankostis
  • 9.7k
  • 3
  • 53
  • 68
Loading
Grammar. Issued is actually a nice pun, but might be confusing.
Source Link
Mateen Ulhaq
  • 27.8k
  • 21
  • 121
  • 155
Loading
One code block was meant to be part of quoted material.
Source Link
Walf
  • 9.5k
  • 3
  • 47
  • 67
Loading
Removed dollar signs for easy copy and paste for Windows users.
Source Link
Zack Plauché
  • 4.3k
  • 4
  • 30
  • 44
Loading
Added info about Git v2.3 honoring the -f flag when deleting a local branch.
Source Link
Matthew Rankin
  • 461.4k
  • 39
  • 130
  • 166
Loading
Eliminated superfluous updates by others that simply added characters in body.
Source Link
Matthew Rankin
  • 461.4k
  • 39
  • 130
  • 166
Loading
Clarifying with comments the executive summary
Source Link
Basil Musa
  • 8.9k
  • 6
  • 69
  • 70
Loading
added 18 characters in body
Source Link
Junaid
  • 5k
  • 1
  • 39
  • 46
Loading
Suggesting an explanation on what to do in case of `error: Cannot delete the branch 'branch_name'`.
Source Link
Loading
I added an example command that serves as an explicit example
Source Link
Bombe
  • 84.4k
  • 20
  • 127
  • 127
Loading
I added an example command that serves as an explicit example
Source Link
Loading
added 98 characters in body
Source Link
CodeWizard
  • 145.5k
  • 22
  • 162
  • 181
Loading
Since the other command already uses the shorthand `-d`, it seems biased to make the first one longer.
Source Link
Lazar Ljubenović
  • 19.9k
  • 10
  • 58
  • 95
Loading
added 2 characters in body
Source Link
Loading
The `-d` option only works for version 2.8.0. Most users are unlikely to have the latest version.. so its better to have `--delete` in the summary.
Source Link
Loading
Updated executive summary.
Source Link
Matthew Rankin
  • 461.4k
  • 39
  • 130
  • 166
Loading