#1137  default branch to main
Released
Andreas Wachter opened 1 year ago

Is there any way to set the default branch to "main" by default when creating a new project?

Robin Shen changed fields 1 year ago
Name Previous Value Current Value
Type
Support Request
Improvement
Robin Shen commented 1 year ago

Not possible now, and will make default branch configurable in future versions.

Unknown commented 1 year ago

OBJECT: This should be added as a feature but not made default like every other git platform, it should be solely up the user and or sysadmin to decide the default branch name.

Robin Shen commented 1 year ago

@polarian so this is configurable.

OneDev changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
OneDev commented 1 year ago

State changed as code fixing the issue is committed

OneDev changed state to 'Released' 1 year ago
Previous Value Current Value
Closed
Released
OneDev commented 1 year ago

State changed as build #3440 is successful

wilson0x4d commented 1 month ago

where is this configurable?

Robin Shen commented 1 month ago

It will use the first branch you pushed to OneDev as default branch. And you may change default branch afterwards from branches page.

issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (5)
Reference
onedev/server#1137
Please wait...
Page is in error, reload to recover