Answers for "how to create a main branch in git"

0

set defualt branch to main git

git config --global init.defaultBranch main
Posted by: Guest on October-05-2021
1

how to commit to main branch in git

git checkout -b your-new-branch
git add <files>
git commit -m <message>
Posted by: Guest on July-24-2021

Code answers related to "how to create a main branch in git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language