4 ms·
GH keyboard shortcut: When viewing a file in GitHub, type "y" to update the URL so it explicitly pins to a commit (e.g., turning https://github.com/trailofbits/
by JoshMandel 5y ago
GH keyboard shortcut: When viewing a file in GitHub, type "y" to update the URL so it explicitly pins to a commit (e.g., turning https://github.com/trailofbits/semgrep-rules/blob/main/hanging-goroutine.yml https://github.com/trailofbits/semgrep-rules/blob/main/hangi... into https://github.com/trailofbits/semgrep-rules/blob/385c42a/go/hanging-goroutine.yml https://github.com/trailofbits/semgrep-rules/blob/385c42a/go...).
This has become part of my muscle memory when copying links for posterity, but it makes sense not to be the default, because sometimes you want to share an evergreen link (i.e., always pointing to the latest content) rather than an immutable link.