As @BurhanKhalid say, but here explaining as a "GitHub fast guide", with URL syntax:
- Browse your project at
https://github.com/<USER>/<PROJECT>
...
- ... then you have a URL ending with the file path:
https://github.com/<USER>/<PROJECT>/blob/master/<PATH>
- Now you have all, is only to change "blob/master" to "commits/master":
https://github.com/<USER>/<PROJECT>/commits/master/<PATH>
PS: to remember "commits/master" click at the project's home in the "Commit" link.
Ops: there are a similar answer here, @TimHenigan expressed with http://github.com/<username>/<project>/commits/<branch>/<path/to/file>
Question to GitHub developers team
Why do you not offer a direct link for this kind of browsing? We need it, like Wikipedia readers need "history" link!
Ops, GitHub's team is listening to us?
Now (June 2014) when you browse through the folders, an icon appears, see "browse commits" above right. When you click, the tree/master
URL turns commits/master
.
Still missing to have the same for files, as showed here, but was an evolution.