How to find the default branch?

  Kiến thức lập trình

If I use the command

git branch -m main2 

to change the default branch name from master to main2.

And then I use

git branch checkout -b main1

to create a new branch.

If someone clones my git repository, how would he know that the default branch is actually main2?

3

LEAVE A COMMENT