Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git file history browsing

is there a way to browse the history versions (rather than the plain diff) in a git repo? i'm looking something like what you would expect from tortoiseSvn log/diff browser but for ubuntu. I don't want to see the diffs directly but rather the whole file with the version in its original context, with a highlight showing diffs from previous version

like image 973
lurscher Avatar asked Oct 19 '10 17:10

lurscher


People also ask

How do I browse git history?

Git file History provides information about the commit history associated with a file. To use it: Go to your project's Repository > Files. In the upper right corner, select History.

How do I see file 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.

Where does git keep history?

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.

What is the git history log?

The git log command shows a list of all the commits made to a repository. You can see the hash of each Git commit , the message associated with each commit, and more metadata. This command is useful for displaying the history of a repository.


2 Answers

gitg does this, available through the repositories. There are other git visualizers but I don't know about them.

For gitg choose the commit in the branch, and then the 'tree' tab (next to 'details', which show the difference).

like image 181
koen Avatar answered Oct 02 '22 20:10

koen


There is tortoiseGit. I would recommend on not cloning as much as I did with tortoiseSVN.

like image 42
Adam Dymitruk Avatar answered Oct 02 '22 20:10

Adam Dymitruk