Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default branch from master to main #108

Closed
avdev4j opened this issue Oct 12, 2020 · 1 comment
Closed

Change default branch from master to main #108

avdev4j opened this issue Oct 12, 2020 · 1 comment
Assignees

Comments

@avdev4j
Copy link
Contributor

avdev4j commented Oct 12, 2020

According to this ticket jhipster/generator-jhipster#11935, we need to change the name of the main branch.

[X] create branch main from master
[X] define main branch as default
[X] protect main
[X] edit existing pull requests

As contributor what should I do?

  • Run git fetch to get the main branch back and git push to update your remote fork.
  • If I have an opened pull-request?
    Nothing to do, all PR have been edited to target main branch.
  • If I have a work in progress?
    If your branch has been created from master please rebase from main, in case commits have been added to it. When you will open the PR GitHub will automatically choose the main branch for you.
  • And what about future branches?
    Create new branches from "main" instead of "master". You can delete "master" branch on your fork as it will no been used or updated anymore.
  • What about my forked project?
    To update you fork please run this commands:
git fetch
git checkout main
git push --set-upstream origin main

And go to your GitHub repository then Settings -> Branches and change the default branch to main
Capture d’écran 2020-10-12 à 10 39 24

If you dealing with issues, open a ticket by following our guidelines. We'll try to help you.

cc @danielpetisme @joewhite101

@avdev4j avdev4j self-assigned this Oct 12, 2020
@avdev4j
Copy link
Contributor Author

avdev4j commented Oct 12, 2020

Also done for the sample Quarkus project https://github.com/jhipster/jhipster-sample-app-quarkus

@avdev4j avdev4j pinned this issue Oct 12, 2020
@avdev4j avdev4j closed this as completed Oct 12, 2020
@pascalgrimaud pascalgrimaud unpinned this issue Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant