Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git init branch name

git init --initial-branch=trunk
git init -b trunk


#This is configurable with the init.defaultBranch setting. 
#If I want all new repos to have "trunk" as the default branch:
git config --global init.defaultBranch trunk
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #init #branch
ADD COMMENT
Topic
Name
6+4 =