Skip to content

Instantly share code, notes, and snippets.

@tacahiroy
Created October 2, 2020 12:45
Show Gist options
  • Save tacahiroy/4d6f97350dcd2f76e12817d7d2a78323 to your computer and use it in GitHub Desktop.
Save tacahiroy/4d6f97350dcd2f76e12817d7d2a78323 to your computer and use it in GitHub Desktop.
To change the default branch for the bare repository in Git
# https://stackoverflow.com/a/3302018/1431621
git symbolic-ref HEAD refs/heads/mybranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment