Create a main branch, not master [message #1860096] |
Mon, 17 July 2023 13:07  |
Eclipse User |
|
|
|
How do I get EGit to create a main branch for the initial commit and push?
This is a very beginner question. I have tried to find answers but wherever the answer exists, it is too complicated for me to understand.
I have been doing the following; I can do this much. I can create an Eclipse project and create a local repository for it. I can create a GitHub repository and specify the SSH connection for it in EGit. Then when I do a commit and push it says the branch is unborn and the master branch will be created. My GitHub account is set to use main for the default branch. I ignore the message and do the push then I do something to clean things up. I am not sure what, I think I do a rename of something somewhere.
I have been unable to find an answer to the question of how to specify use of main for the branch for the initial commit and push.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04884 seconds