Skip to content

Instantly share code, notes, and snippets.

@basselin
Last active September 28, 2020 19:08
Show Gist options
  • Save basselin/f5d50f50a81d958d2811376e67917852 to your computer and use it in GitHub Desktop.
Save basselin/f5d50f50a81d958d2811376e67917852 to your computer and use it in GitHub Desktop.
git symbolic-ref HEAD
git branch -m main
git push origin main
git branch -r
# warning: ignoring broken ref refs/remotes/origin/HEAD
# origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
git branch -r
# origin/HEAD -> origin/main
# origin/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment