You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ENH][DOC] add instructions to existing users how to migrate their locar repos to main branch #1587
Is your feature request related to a problem? Please describe.
see #1584 - we plan to change the name of master branch to main, if we do, links on GH are updated, but users will have to follow directions to update their local repos
Describe the solution you'd like
Add a temporary section to the docs? announce on google groups
Describe alternatives you've considered
do nothing, just announce on g-group, point users to GH docs
Additional context
IMHO, I have dragged my feet too long on this, just need to do it asap. It will be confusing for a few days, then done
@pvlib/pvlib-core here's a wrinkle, my personal fork is not auto updated, I see this lovely GH message
so that's another step, to rename master branch in my personal fork as well!
Probably most people will have origin set to their own fork, right? I have kanderso-nrel/pvlib-python as origin and pvlib/pvlib-python as upstream. I think people will need to rename the branch in their fork on github before these local commands are applicable.
Activity
mikofski commentedon Nov 8, 2022
I'm thinking something on this page: https://pvlib-python.readthedocs.io/en/stable/contributing.html
wholmgren commentedon Nov 8, 2022
This. The only people that will be effected are those that can deal with it with reasonable effort. No need to reinvent GH docs.
mikofski commentedon Nov 8, 2022
@wholmgren then I suggest just go ahead and do it now. I'll post something on google groups linking to the discussion or the GH help docs
mikofski commentedon Nov 8, 2022
FYI: @pvlib/pvlib-core - I can't make the change, I can't see the settings tab in pvlib
cwhanse commentedon Nov 8, 2022
@mikofski simply rename
masterbranch tomain?mikofski commentedon Nov 8, 2022
I believe we can follow the steps here: https://github.com/github/renaming#renaming-existing-branches
and here: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch

then users do what it says here: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch#updating-a-local-clone-after-a-branch-name-changes
mikofski commentedon Nov 10, 2022
Here is what GH says when renaming master to main:

instructions to update local environments:
mikofski commentedon Nov 10, 2022
OK, it's done. All contributors please update your local environments following GH instructions.
mikofski commentedon Nov 10, 2022
note replace with "main" so:
mikofski commentedon Nov 10, 2022
@pvlib/pvlib-core here's a wrinkle, my personal fork is not auto updated, I see this lovely GH message

so that's another step, to rename master branch in my personal fork as well!
kandersolar commentedon Nov 10, 2022
Probably most people will have
originset to their own fork, right? I havekanderso-nrel/pvlib-pythonasoriginandpvlib/pvlib-pythonasupstream. I think people will need to rename the branch in their fork on github before these local commands are applicable.Edit: I think @mikofski beat me by a µs
mikofski commentedon Nov 10, 2022
Here's what the renaming process looked like for me, with my mistakes included 😉 😜

anyway, not too painful and all good now 👍 😺
mikofski commentedon Nov 10, 2022
GH really holding our hands here, saw this on upstream:

mikofski commentedon Nov 10, 2022
@kanderso-nrel I had one more wrinke, after updating origin and my local environment, I still had this:

So I reran the GH commands with "upstream" as you suggested

now all good
