Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Commit History Navigation

Tags:

github

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.

like image 510
kldavis4 Avatar asked Apr 04 '13 16:04

kldavis4


People also ask

How do I see commit history in GitHub?

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.

How can I see the history of a commit?

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

Where is git commit history stored?

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.

Does git store history of all commits?

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.


1 Answers

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

like image 63
Ivan Zuzak Avatar answered Oct 26 '22 14:10

Ivan Zuzak