kldavis4
kldavis4

Reputation: 2197

Github Commit History Navigation

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.

Upvotes: 7

Views: 2123

Answers (1)

Ivan Zuzak
Ivan Zuzak

Reputation: 18782

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).

Upvotes: 4

Related Questions