Skip to main content
The 2024 Developer Survey results are live! See the results
Post Made Community Wiki by blackgreen
Post Locked by blackgreen
Notice added Wiki Answer by blackgreen
deleted 5 characters in body
Source Link
John Smith
  • 7.4k
  • 6
  • 51
  • 63

Failed Attempts to Delete a Remote Branch:

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.

How do I properly delete the remotes/origin/bugfix 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.

How do I properly delete the remotes/origin/bugfix 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.

How do I properly delete the remotes/origin/bugfix branch both locally and remotely?

Notice removed Authoritative reference needed by Zoe - Save the data dump
Notice added Authoritative reference needed by Zoe - Save the data dump
Notice removed Authoritative reference needed by Zoe - Save the data dump
Notice added Authoritative reference needed by Zoe - Save the data dump
Reduce redundancy. (Already mentioned in title, subtitle, and final question.)
Source Link
Mateen Ulhaq
  • 26.6k
  • 20
  • 115
  • 147

I want to delete a branch both locally and remotely.

Failed Attempts to Delete a Remote Branch

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.

What should IHow do differently to successfullyI properly delete the remotes/origin/bugfix branch both locally and remotely?

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.

What should I do differently to successfully delete the remotes/origin/bugfix 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.

How do I properly delete the remotes/origin/bugfix branch both locally and remotely?

deleted 5 characters in body
Source Link
codeforester
  • 41.8k
  • 19
  • 115
  • 149

I want to delete a branch both locally and remotely.

Failed Attempts to Delete a Remote Branch

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.

What should I do differently to successfully delete the remotes/origin/bugfix branch both locally and remotely?

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.

What should I do differently to successfully delete the remotes/origin/bugfix branch both locally and remotely?

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.

What should I do differently to successfully delete the remotes/origin/bugfix branch both locally and remotely?

Rollback to Revision 44 - Edit approval overridden by post owner or moderator
Source Link
Matthew Rankin
  • 460.8k
  • 39
  • 127
  • 165
Loading
Active reading.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 109
  • 132
Loading
added 2 characters in body
Source Link
Udhay Titus
  • 5.8k
  • 4
  • 24
  • 42
Loading
edited tags
Link
Sazzad Hissain Khan
  • 39.5k
  • 39
  • 205
  • 292
Loading
Rollback to Revision 39
Source Link
cs95
  • 397k
  • 102
  • 732
  • 783
Loading
added 1 character in body
Source Link
Alec
  • 9.2k
  • 8
  • 40
  • 66
Loading
Remove references to Github.
Source Link
Matthew Rankin
  • 460.8k
  • 39
  • 127
  • 165
Loading
not specific to github
Link
VonC
  • 1.3m
  • 550
  • 4.6k
  • 5.5k
Loading
fixed Grammar, improved formatting, corrected heading, added relevant tags
Source Link
Loading
Rollback to Revision 34
Link
Vadim Kotov
  • 8.2k
  • 8
  • 49
  • 63
Loading
edited tags
Link
KARTHIKEYAN.A
  • 19.6k
  • 7
  • 134
  • 145
Loading
Rollback to Revision 32
Link
Mateusz Piotrowski
  • 8.7k
  • 10
  • 57
  • 81
Loading
tagas updated
Link
KARTHIKEYAN.A
  • 19.6k
  • 7
  • 134
  • 145
Loading
Active reading.
Link
Peter Mortensen
  • 31.4k
  • 22
  • 109
  • 132
Loading