git file history browsing
Asked Answered
J

4

6

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

Jubbah answered 19/10, 2010 at 17:9 Comment(0)
A
3

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

Aviation answered 19/10, 2010 at 17:51 Comment(0)
Z
1

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

Zayin answered 19/10, 2010 at 18:10 Comment(0)
M
0

to follow up with koen, there is also gitk, also known as git-gui, which is the "official" gui git browser, and shows diffs on a per-commit basis, and commits in a tree, as well as qgit, which is quite similar, but with a qt interface.

to launch gitk, just type gitk ~/path/to/my/AWESOMEPROJECTOFAWESOME and browse away!

You may have to sudo apt-get install gitk depending on how you installed git.

Maytime answered 19/10, 2010 at 18:2 Comment(3)
He's coming from the Windows world most likely and hence gitk is installed by default with msysgit.Zayin
with gitk you don't get the side-by-side diffZayin
gitk allows you to adjust the lines of context you see in any commit and flip between the original and new versions in any commit. just another tool for the job.Maytime
E
0

I've been using gitup for the last few months, and aside from a few graphical quirks, it's been quite a pleasure to work with.

Eleemosynary answered 25/5, 2016 at 22:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.