Is there a way to navigate forward and backward through the commit history on github?
I'd like something similar to Trac, where if I click on a specific changeset in the revision log, there are links for Next Change and Previous Change.
On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.
`git log` command is used to view the commit history and display the necessary information of the git repository. This command displays the latest git commits information in chronological order, and the last commit will be displayed first.
Git stores the complete history of your files for a project in a special directory (a.k.a. a folder) called a repository, or repo. This repo is usually in a hidden folder called . git sitting next to your files.
The blob, tree, and commits are how Git stores the complete history of your repository. It does all the references by the object hash: there is no way of manipulating the history or files tracked in the repository without breaking the relations.
Most pages on GitHub support keyboard shortcuts. To see the shortcuts just press ?
on any GitHub page.
So, if you are looking at a particular commit, you will see several keyboard shortcuts available (under Browsing Commits
) including: p
for parent commit
. So, when you are on a particular commit, press p
and you will be taken to the previous (parent) commit. Unfortunately, I don't see a shortcut for navigating to the next (child) commit.
Also notice that all commit pages have links to the parent commits near the top of the page (look for the txt "1 parent" with a short SHA which will be a link to the parent commit).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With