Hope this helps! Other good names are latest, trunk, and stable! UPDATE! As of Git 2.28 you don't need an alias as above, as there is a new config option called init.DefaultBranch. ( NOTE: This is no longer needed, set below) git config -global alias.new '!git init & git symbolic-ref HEAD refs/heads/main' You can add an alias " git new" that will default to whatever starting branch you like.
0 Comments
Leave a Reply. |