question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: github link should use default branch, not master branch

See original GitHub issue

Does 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:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
MartinKolarikcommented, Sep 15, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found