This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I changed `master` to `main` on a `username.github.io` repo and the site went to 404. I assume it was DNS related and would solve itself and went to sleep. The site was still down in the morning, so I edited the `index.html` to add a single character change and merged to trigger a deploy. This fixed it. I'm shocked that GitHub doesn't just perform a one-time deploy of GH Pages after a branch name. Especially in a scenario where you're going from `master` to `main` on a repo ending in `.github.io`. But really it should just do that anytime the branch used for GH Pages is renamed.
|
@willsmythe can you comment on this? |
queilawithaQ
approved these changes
May 12, 2021
zbianca
approved these changes
May 25, 2021
|
Fun fact! I just changed that branch from |
nickmccurdy
approved these changes
Jun 27, 2021
|
Instead of adding a single space (or some other meaningless) for this, you can just use the |
ghost
approved these changes
Sep 6, 2021
ttloves2
approved these changes
Oct 14, 2021
ttloves2
approved these changes
Oct 14, 2021
ghost
approved these changes
Oct 20, 2021
fizietechD
approved these changes
Dec 24, 2021
willsmythe
reviewed
Feb 11, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

I changed
mastertomainon ausername.github.iorepo and the site went to 404. I assumed it was DNS related and would solve itself and went to sleep (using a CNAME file). The site was still down in the morning, so I edited theindex.htmlto add a single character change and merged to trigger a deploy. This fixed it.I'm shocked that GitHub doesn't just perform a one-time deploy of GH Pages after a branch rename. Especially in a scenario where you're going from
mastertomainon a repo ending in.github.io. But really it should just do that anytime the branch used for GH Pages is renamed. Forcing all users to know about this weird edge case and having to add a space to a file to fix it is very hacky.Until this can be automated by GitHub staff, it should at least be documented.