Status Update
Comments
br...@google.com <br...@google.com> #2
Hi, could you please share screen shots of the UI you refer? Currently in the Cloud Source Repositories UI, in the top you will find:
YourRepository > Branch > file
You have a drop down in Repository and in Branch to change anytime.
[Deleted User] <[Deleted User]> #3
br...@google.com <br...@google.com> #4
Hi, this feature request has been forwarded to the Source Repository product management team so that they may evaluate it. There is no timeline or implementation guarantee for feature requests. All communication regarding this feature request is to be done here.
de...@simpleclub.com <de...@simpleclub.com> #5
Using master in now discourage by a Google guideline:
But not being able to switch away from master
if one wants to properly use Cloud Source Repositories is working against this policy to strictly avoid it.
ke...@gmail.com <ke...@gmail.com> #6
bk...@coastsystems.net <bk...@coastsystems.net> #7
Settings/General Settings/Select default branch.
lo...@cityblock.com <lo...@cityblock.com> #8
lu...@gmail.com <lu...@gmail.com> #9
an...@foundation.com.au <an...@foundation.com.au> #10
da...@gmail.com <da...@gmail.com> #11
jg...@wemakeprice.com <jg...@wemakeprice.com> #12
gh...@google.com <gh...@google.com>
gh...@google.com <gh...@google.com>
fc...@adviso.ca <fc...@adviso.ca> #13
Same issue here!
I want the 'Main' branch as HEAD instead of using 'Master' to follow the new convention (like GitHub supports).
Almost 2 1/2 years since the issue creation it should already be fixed...
ja...@startupos.dev <ja...@startupos.dev> #14
iv...@ivanlawrence.com <iv...@ivanlawrence.com> #15
fe...@gmail.com <fe...@gmail.com> #16
mi...@gmail.com <mi...@gmail.com> #17
ha...@gmail.com <ha...@gmail.com> #18
ba...@google.com <ba...@google.com>
gh...@google.com <gh...@google.com>
ai...@nihon-u.ac.jp <ai...@nihon-u.ac.jp> #19
+1
Description
Please allow the ability to change the default branch for a source repository in the GCloud UI. The default branch is currently set to master. If this branch is not pushed to the repository, the message "No commits on the default branch" is displayed.
What you would like to accomplish:
Please add a control that allows the default branch to be changed from master to any existing branch. The default branch will be used to populate the UI on the homepage of a Cloud Source Repository.
How this might work:
This could work as a drop down selector populated by current branches in the repository. The UI element could be placed on the settings page for the repository.
If applicable, reasons why alternative solutions are not sufficient:
On 10/1/2020 Github will be setting the default branch of all newly created repositories to main instead of master. In addition, both Github, Azure and many other git hosting providers already allow changing the default branch.
Other information (workarounds you have tried, documentation consulted, etc):
Searched Cloud Source Repository documentation via