If we want to rename our default branch from master
to main
then we need to make sure every link that pointed to master
is updated as well.
This is sometimes not possible if the published document is locked. I realize that we just “shouldn’t have linked to a branch because the file gets removed” but for evergreen files such as “README” or “CONTRIBUTING” this would be a bit unfortunate.
If GitHub would redirect links to tree and blob (e.g. https://github.com/eps1lon/dom-accessibility-api/blob/f4293f4d373944b583797a960fda958873bb28b9/README.md) for renamed branches we wouldn’t have this issue.