Skip to content

Instantly share code, notes, and snippets.

@dbanetto
Created June 20, 2020 04:09
Show Gist options
  • Save dbanetto/76ca2473ec3e23e43330126c9c2fce8c to your computer and use it in GitHub Desktop.
Save dbanetto/76ca2473ec3e23e43330126c9c2fce8c to your computer and use it in GitHub Desktop.
Change the default branch for a new git repo
echo 'ref: refs/heads/main' > /usr/share/git-core/templates/refs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment