Empty default branch is not very useful #12
Labels
No labels
effort
high
effort
low
effort
medium
good first issue
help wanted
meeting topic
needs changes
needs reporter feedback
needs review
priority
high
priority
low
priority
medium
type/content
type/misc
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
docs/docs-fp-o#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's not particularly useful to (potential) contributors browsing or cloning the project, if the only thing they see is a basically-empty repo. It also won't help anyone looking to submit an MR, if they end up targeting the empty
mainbranch by default.If the team wants to use the
stgandprodbranches to hold the two versions of the configuration, that's fine, but why not configurestgas the repo default branch and deletemainentirely? Presumably any MRs submitted should targetstg, and anyone looking to make use of the repo for local building or etc. should also work offstgunless otherwise needed.There's no reason there has to be a
mainbranch, if the de facto default isstg. Just make it the literal default.(Settings > Repository settings > Branch defaults to change the default branch, then you might need to adjust the Branch rules right below to remove the protection from
mainbefore it can be deleted.)mainforprod#19#19 is a duplicate of this and it has some important comments so I'll keep that one and close this.