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

Updating links to master branch to point to main branch #41143

Closed
wants to merge 1 commit into from
Closed

Updating links to master branch to point to main branch #41143

wants to merge 1 commit into from

Conversation

MikeRogers0
Copy link
Contributor

@MikeRogers0 MikeRogers0 commented Jan 16, 2021

Summary

As we recently changed the default branch from master to main we should update the links to the repo in the code also.

Right now those links won't break, but they're not going to be pointing to the most up-to-date code. So I went through updated the links pointing to https://github.com/rails/rails/blob/master & https://github.com/rails/rails/tree/master to use the main branch instead.

Other Information

Here is the command I ran on MacOS to find & replace the references:

$ grep -ilr 'rails/blob/master' * | xargs -I@ sed -i '' 's/rails\/blob\/master/rails\/blob\/main/g' @
$ grep -ilr 'rails/tree/master' * | xargs -I@ sed -i '' 's/rails\/tree\/master/rails\/tree\/main/g' @

@MikeRogers0 MikeRogers0 changed the title Updating references to master branch to point to main branch Updating links to master branch to point to main branch Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant