Skip to content

Instantly share code, notes, and snippets.

@libitte
Last active October 23, 2024 17:09
Show Gist options
  • Save libitte/cbde168d26bc5faf9bf9fef648091b42 to your computer and use it in GitHub Desktop.
Save libitte/cbde168d26bc5faf9bf9fef648091b42 to your computer and use it in GitHub Desktop.
FIX warning: ignoring broken ref refs/remotes/origin/HEAD

warning: ignoring broken ref refs/remotes/origin/HEAD


➜   ✗ g symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/develop
➜   ✗ g fetch --prune
➜   ✗ g gc

https://www.netroby.com/view/3864

@fitsyu
Copy link

fitsyu commented Sep 25, 2018

thanks

@waqasajaz
Copy link

in my case primary branch name was "production"
I ran git remote set-head origin production to solve this issue.

@jtmchorse
Copy link

Disso thanks for leaving the comment, it helped me fix my error. Cheers,

@AfzalMasood11
Copy link

Thanks @dlsso

@spier
Copy link

spier commented Oct 21, 2020

👍

@mochadwi
Copy link

Thanks @dlsso

@dexter9code
Copy link

yo that's good no cap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment