Community
Participate
Working Groups
The git community is working on improving terminology to be more respectful and is working on adding support to use a different default branch name than "master" They decided to introduce a new option core.defaultBranch to configure the default branch to be used e.g. when a new repository is created. This new option didn't yet reach a git release, it's currently cooking [1]. Here is the original discussion on the git list [2]. In addition a new option core.mainBranch is being introduced to record to which name the default branch of a given repository was set [3]. JGit should also add support for these new options. [1] https://lore.kernel.org/git/xmqqimfid2l1.fsf@gitster.c.googlers.com/ [2] https://lore.kernel.org/git/20200629085957.GS21462@kitsune.suse.cz/ [3] https://lore.kernel.org/git/933e314813df34aafca1a47bfc1fcba389dd5364.1592225416.git.gitgitgadget@gmail.com/
git now supports configuration of the default branch via option init.defaultbranch [4] [4] https://git-scm.com/docs/git-config#Documentation/git-config.txt-initdefaultBranch
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/175296
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/175297
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/175296 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=cb8924a80d9e07182a056c01acd418a6beddcc0f
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/175297 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=927deed5a569bd09ad5d23e815bcc3d68d14de91
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/176758
Gerrit change https://git.eclipse.org/r/c/egit/egit/+/176758 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=4f9905f34036f72033b182d226e06a3b57e99ca4
*** Bug 571761 has been marked as a duplicate of this bug. ***
Am I missing something or is the UI missing for renaming an unborn branch? When trying to commit to an empty repository (e.g. at GitHub) I only see the hint "Unborn branch: this commit will create the branch 'master'". I can neither use "Team->Switch To->New Branch" nor "Team->Advanced->Rename Branch" in that situation. Is this already tracked somewhere?