GitHub "View in Browser" doesn't show HEAD commit
已回答
I LOVE the “View in Browser” feature and I use it all the time at work to create links to code.
I just now noticed that, on some files that haven't been touched in a while, the link I'm getting points to the last commit in which the specific file I'm looking at changed. Thus, even if I'm looking at the tip commit of my current branch, the links I'm creating point to lots of different commits.
I would prefer that the link created by “View in Browser” always point to the current commit.
Have I misunderstood what's happening?
I'm using CLion 2026.1.1.
请先登录再写评论。
Hello Patrick Turley
You haven’t misunderstood, it's a usability issue. The current GitHub link behavior is commit-based, not current-HEAD-based, so it shows a specific commit rather than the branch tip.
I already opened a new ticket for this problem, please subscribe to IJPL-243896 to get further updates and upvote so we can see the number of affected users.
Excellent - thank you for bringing me up to speed. I'll have a look at that issue.
This might be related to how IntelliJ or Git integration is caching or resolving the latest commit reference. Sometimes, the “View in Browser” option doesn’t immediately reflect the HEAD commit if the local branch hasn’t fully synced or if there’s a delay in remote updates.
You could try refreshing the project, invalidating caches, or ensuring the branch is properly pushed and tracked. Also, checking whether the correct remote is selected can help.
In one of my projects, where I was managing structured data (similar to modeling something like a sonic frozen menu with frequent updates), I noticed that small sync delays or incorrect branch references caused similar confusion in commit visibility.
It might help to verify the commit hash locally vs what GitHub shows, and confirm that everything is aligned between local and remote.