G-Node / G-Node/gogs

Allow initializing a repository with a branch name other than `master`

Open
#138 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hi,
thanks for your work.

It looks like one can only switch to another branch (e.g. `main`) as the default branch once the repository has been created. Using `main` as the default branch name is increasingly common/even the default choice for many code/data hosting repositories. Can you please provide the option to name the default branch to any name other than `master` please?

Thank you.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Locate the repository initialization and default-branch handling, then trace how the initial branch name is chosen. Done means initialization accepts a chosen branch name such as main instead of always using master.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.