Redirect blob/tree urls when a branch is renamed

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.

Hey eps1lon! :wave:

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Support Community, and we consider every suggestion we receive.

Would you mind submitting this through our official product feedback form so that our product team can track your request?

What should I fill in under “What part of GitHub is your feedback about?”?

I think this would come under “other”! That means it goes to the main Product Team, rather than one of the more specialized sub=teams…