Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
Post Closed as "Duplicate" by larsks, Mario S, Wouter J, poke, VonC
edited tags
Link
CharlesB
  • 88.5k
  • 29
  • 197
  • 222
cleanup
Source Link
Micha Wiedenmann
  • 20.4k
  • 21
  • 93
  • 139

When I do ls-remotegit ls-remote to my remote repository it shows.:

HEAD
 
refs/heads/BranchA
 
refs/heads/master
 
refs/remotes/origin/BranchA
 
refs/remotes/origin/master

How can I want to delete the last two ones. Please help

Thanksentries?

When I do ls-remote to my remote repository it shows.

HEAD
 
refs/heads/BranchA
 
refs/heads/master
 
refs/remotes/origin/BranchA
 
refs/remotes/origin/master

I want to delete the last two ones. Please help

Thanks

When I do git ls-remote to my remote repository it shows:

HEAD
refs/heads/BranchA
refs/heads/master
refs/remotes/origin/BranchA
refs/remotes/origin/master

How can I delete the last two entries?

Source Link
Ahmad
  • 2.2k
  • 5
  • 26
  • 38

Remove refs/remotes entirely

When I do ls-remote to my remote repository it shows.

HEAD

refs/heads/BranchA
 
refs/heads/master

refs/remotes/origin/BranchA

refs/remotes/origin/master

I want to delete the last two ones. Please help

Thanks