Getting permanent links to files and lines at Github¶
Problem: without any additional actions link to concrete file or line of code in it looks like this https://github.com/OSLL/mdbci/blob/master/mdbci#L14
It does not contain commit hash and after some time it will became invalid.
- Open file at github
- Press "y" key
- Ensure that url in address bar was changed and now looks like https://github.com/OSLL/mdbci/blob/50ded565e0c7e1d5d17c6ccc09e4e3bfefcdf4be/mdbci
- Press on a needed line number and copy it from the address bar