Skip to content

[ENH][DOC] add instructions to existing users how to migrate their locar repos to main branch #1587

Closed

Description

@mikofski

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

Activity

  1. added this to the 0.9.4 milestone on Nov 8, 2022
  2. self-assigned this
    on Nov 8, 2022
  3. mikofski commented on Nov 8, 2022

    @mikofski
    MemberAuthor
  4. wholmgren commented on Nov 8, 2022

    @wholmgren
    Member

    do nothing, just announce on g-group, point users to GH docs

    This. The only people that will be effected are those that can deal with it with reasonable effort. No need to reinvent GH docs.

  5. mikofski commented on Nov 8, 2022

    @mikofski
    MemberAuthor

    @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

  6. mikofski commented on Nov 8, 2022

    @mikofski
    MemberAuthor

    FYI: @pvlib/pvlib-core - I can't make the change, I can't see the settings tab in pvlib

  7. cwhanse commented on Nov 8, 2022

    @cwhanse
    Member

    @mikofski simply rename master branch to main?

  8. reopened this on Nov 8, 2022
  9. mikofski commented on Nov 8, 2022

    @mikofski
    MemberAuthor
  10. mikofski commented on Nov 10, 2022

    @mikofski
    MemberAuthor

    Here is what GH says when renaming master to main:
    image

    • Will update 36 pull requests targeting this branch across 23 repositories.
    • Will update 1 branch protection rule that explicitly targets master.

    instructions to update local environments:

    git branch -m master <BRANCH>
    git fetch origin
    git branch -u origin/<BRANCH> <BRANCH>
    git remote set-head origin -a
    
  11. mikofski commented on Nov 10, 2022

    @mikofski
    MemberAuthor

    OK, it's done. All contributors please update your local environments following GH instructions.

  12. mikofski commented on Nov 10, 2022

    @mikofski
    MemberAuthor

    note replace with "main" so:

    git branch -m master main
    git fetch origin
    git branch -u origin/main main
    git remote set-head origin -a
    git remote prune origin
  13. mikofski commented on Nov 10, 2022

    @mikofski
    MemberAuthor

    @pvlib/pvlib-core here's a wrinkle, my personal fork is not auto updated, I see this lovely GH message
    image
    so that's another step, to rename master branch in my personal fork as well!

  14. kandersolar commented on Nov 10, 2022

    @kandersolar
    Member

    git fetch origin

    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.

    Edit: I think @mikofski beat me by a µs

  15. mikofski commented on Nov 10, 2022

    @mikofski
    MemberAuthor

    Here's what the renaming process looked like for me, with my mistakes included 😉 😜
    image
    anyway, not too painful and all good now 👍 😺

  16. mikofski commented on Nov 10, 2022

    @mikofski
    MemberAuthor

    GH really holding our hands here, saw this on upstream:
    image

  17. mikofski commented on Nov 10, 2022

    @mikofski
    MemberAuthor

    @kanderso-nrel I had one more wrinke, after updating origin and my local environment, I still had this:
    image

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

    now all good
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions