Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git branch -M main not working


Git init creates a repo without any commits.

Since a branch is a pointer to a commit, you can't have branches until you commit something.
 
PREVIOUS NEXT
Tagged: #git #branch #main #working
ADD COMMENT
Topic
Name
2+6 =