Reputation: 735
I know that one can get a permanent link to a specific file on a public GitHub repository (as explained here).
However, is it possible to get a permanent link to a specific directory? Specifically, I want to share a permanent link to the following directory (power_analysis
) in the following public GitHub repository: https://github.com/Social-Body-Lab/stress_adaptation_and_motor_memory/tree/main/power_analysis
My understanding is that this could change depending on future commits, but I want a permanent link to this folder / directory that I can share in a study pre-registration (which cannot be changed after publication).
Thanks in advance for any help!
Upvotes: 2
Views: 1017
Reputation: 144136
When viewing the Github UI, you can use the 'y' shortcut to link to a specific version. Doing this for the tree in your question results in https://github.com/Social-Body-Lab/stress_adaptation_and_motor_memory/tree/2cb95b7c1651a35ec3ff44d50df8bdc1db282aeb/power_analysis which links to the tree associated with the current commit at the head of the master
branch.
Upvotes: 2