Hacker News new | ask | show | jobs
by whalesalad 1594 days ago
Another fun github hack: if you browse the repo for a particular file, the URL will be something like

    github.com/user/repo/blob/master/foo/bar/baz.py
But this file can change, meaning this url might not have the same content a week or month down the road. This is particularly troublesome when you have lines selected. To fix this, press `y` and your url will get expanded to include the current commit hash:

    github.com/user/repo/blob/e4ecae.../foo/bar/baz.py
Now your URL is safe to share.