Feature: github link should use default branch, not master branch
See original GitHub issueDoes the github link without a branch specified, for example https://cdn.jsdelivr.net/gh/markedjs/marked/lib/marked.js, use the default branch or is hardcoded to the master
branch?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why GitHub renamed its master branch to main | TheServerSide
Let's examine why GitHub renamed the master branch to main branch and what effect it will have on developers.
Read more >5 steps to change GitHub default branch from master to main
5 steps to change GitHub default branch from master to main · Step 1 – Move the 'master' branch to 'main' · Step...
Read more >Why does my 'git branch' have no master? - Stack Overflow
Most Git repositories use master as the main (and default) branch - if you initialize a new Git repo via git init ,...
Read more >The new Git default branch name - GitLab
Action required: If during the switchover you created a contribution for the GitLab project and are still using the master branch locally, you ......
Read more >You can now fork a repo and copy only the default branch
When all branches are copied, it could result in slow repo cloning and unnecessary disk usage. With this new feature, only the default...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Today I found that GitHub supports
@HEAD
references, which seem to point to the default branch, e.g. https://github.com/ractivejs/ractive/blob/HEAD/package.json.However, I couldn’t find anything at all in GitHub docs about it. If anyone finds a resource that confirms this is intended behavior that is safe to rely on, it’ll definitely help.
Relevent info: https://stackoverflow.com/questions/64726262/is-there-a-stable-url-to-always-get-the-default-branch-in-github