Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

fix: rename master to main - #674

Merged
ojeytonwilliams merged 3 commits into
freeCodeCamp:masterfrom
ojeytonwilliams:fix/master-to-main
Aug 2, 2021
Merged

ojeytonwilliams merged 3 commits into
freeCodeCamp:masterfrom
ojeytonwilliams:fix/master-to-main

Conversation

@ojeytonwilliams

@ojeytonwilliams ojeytonwilliams commented Jul 29, 2021 •

Copy link
Copy Markdown
Contributor
  • chore: remove default config for gitpod
  • chore: replace s/master/main/g

This updates the docs to minimize any confusion from the rename.

We've been meaning to do this for a while now: freeCodeCamp/freeCodeCamp#40895, #434

As for adding a develop branch, we can totally do that. However, as @allella pointed out, that's a separate issue from this rename.

Closes: #434

@gitpod-io

gitpod-io Bot commented Jul 29, 2021

Copy link
Copy Markdown

Comment thread CONTRIBUTING.md Resolved
@ojeytonwilliams
ojeytonwilliams merged commit bbd2c46 into freeCodeCamp:master Aug 2, 2021
@ojeytonwilliams
ojeytonwilliams deleted the fix/master-to-main branch August 2, 2021 12:44
@allella

allella commented Aug 2, 2021

Copy link
Copy Markdown
Contributor

@ojeytonwilliams I assume contributors can keep master as the default branch on their forks.

For those who want to switch their fork's default branch, should we publish an example of how to make those changes?

I did the following, but wanted another opinion on easier or better steps.

git fetch upstream && git checkout main && git reset --hard upstream/main && git push origin main --force

Optionally, prune old / dead branches
git remote prune origin && git gc --prune

Then, on your GitHub fork there should be a note about the parent repo changing its base branch name to main and a link to the appropriate settings for you to make the switch.

image

Select the left / right "switch" icon and then select main as the new default branch for your fork.

image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename default branch from master to main

2 participants