Community
Participate
Working Groups
Steps to reproduce: * Set init.defaultBranch = main in the git user config * Create a new Eclipse project (General Project is fine) * Choose Team->Share... from the context menu on the new project * Click "Use or create a repository in parent folder of project" in the dialog * Select the project * Click "Create Repository" * Finish the dialog. * Open the repository in the staging view: it'll indicate unborn branch "master".
As a work-around, after creating the repository, can we change master to main (or whatever name we need for the branch) in the HEAD file?
(In reply to Sam Hobbs from comment #1) > As a work-around, after creating the repository, can we change master to > main (or whatever name we need for the branch) in the HEAD file? Yes, if you do it before making any commit. Otherwise just rename the "master" branch to "main".
https://git.eclipse.org/r/c/egit/egit/+/203309/1 was merged as 003c181b601b3f387aef819cae8d9f6f6bc14ce1