Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Press "y" before linking to a Github file/line to ensure it stays accurate https://github.com/ublue-os/bazzite/blob/5e8f61a56ca3da02778...


I had no idea there was a hotkey for that. Thank you!


Even better, doing so allows GitHub to insert a source snippet if you paste a link like that into an issue or comment.


Yeah, I just always used the context windows to set permalink. Saves me a step now!


My pleasure!


This is cool, but also broken. If you click "raw" after pressing y without reloading, the link is still to a tag/branch.


What do you mean by "to ensure it stays accurate"? Why wouldn't it be accurate if you're just copy-pasting the link?


is the link to the file as it exists on "main" currently, or at a specific revision, so in three years, it will still refer to that version of the file?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: