Hacker News new | ask | show | jobs
by Towaway69 909 days ago
> Similarly, on pages like GitLab you can link to specific line(s) of code in a file...but it often is the head of that branch. The URL will resolve in the future, but its pretty common that the chunk of code has moved.

On GitHub you can hit the 'y' key[1] and it will add the revision into the URL.

GitLab will most probably have something similar.

[1]=https://docs.github.com/en/get-started/accessibility/keyboar...

1 comments

Thanks! It looks like they use the same shortcut key!

https://docs.gitlab.com/ee/user/shortcuts.html#project-files