Questions tagged [gitk]

A graphical browser for the git distributed version control system which allows you to quickly manage branches, and search/review commit logs and diffs.

gitk is a graphical browser for the git distributed version control system which allows you to quickly manage branches, and search/review commit logs and diffs. Usually gitk is packaged with git distributions, on Linux/Unix systems you typically need to install the separate "gitk" package.

See the man page and the blog posts here. Also Guide to understanding gitk? has a nice summary and description.

183 questions
23
votes
1 answer

gitk display only specified branches

I want to compare 2 branches using gitk, without the clutter of other branch histories. I can achieve this via the gui: View > New view > Branches & tags: v0.8.x v0.9.x I tried the following, but it still shows all branches: gitk --branches v0.8.x…
robC
  • 2,342
  • 1
  • 17
  • 27
23
votes
4 answers

Using gitk to view the full history of a moved file

After much searching, I have not found a satisfactory method that is easy to use to view the complete history of a moved file in Git and more importantly in Gitk. Using git log --follow [filePath] and even gitk --follow [filePath] gives you the…
20
votes
1 answer

How does "index f2e4113..d4b9bfc 100644" in git diff correspond to SHA1 ID in gitk?

What does 'index f2e4113..d4b9bfc 100644' mean in the output from git diff? Till now I have assumed that these SHA1 ID's are from_version..to_version, but I can't find them in gitk. $ git --version git version 1.8.3.4 $ git diff ae1fdc1 diff --git…
Robert Locke
  • 335
  • 2
  • 7
19
votes
1 answer

In gitk, why is my yellow button above master?

I couldn't find any documentation on gitk about what the colors mean, but the problem here I think is that my yellow button has passed my master. Now when I try to do: git push origin master It doesn't work. How did my yellow button get over master…
rick
  • 3,953
  • 5
  • 34
  • 40
19
votes
3 answers

How to view complete commits when tracking history of a single file in Git?

I have a Git repository with about a two years of history in it. I have single file in it, for which I wish to find all the commits, and for each commit: all the other files that were committed in it. Let's assume this file is named file.txt. I can…
Milan Babuškov
  • 55,232
  • 47
  • 119
  • 176
18
votes
5 answers

How to copy text in gitk

Can I copy source code in the left-bottom panel in gitk? Any keyboard shortcut or other functions? OS: Ubuntu 9.04 Desktop / gitk: 1:1.6.0.4-1ubuntu2 Thank you.
sfsn
  • 245
  • 3
  • 7
17
votes
1 answer

What does "Mark this commit" mean in gitk?

When using gitk, a commit can be selected in the log pane, and a right click context menu offers "Mark this commit". What does that do?
Vincent Scheib
  • 13,630
  • 7
  • 56
  • 74
15
votes
8 answers

Cygwin gitk issue

I have recently installed all of the X11 packages in the cygwin setup and now have is massive annoying error with not being able to see gitk. Everything was working perfectly well until I installed this stuff. Before I had this issue I didn't really…
bubblebath
  • 829
  • 4
  • 15
  • 40
14
votes
1 answer

Can gitk show the diff of merges by default?

Currently for merges without conflicts gitk shows no diffs. Is it possible to have the diffs resulting from a merge (which are indeed there, e.g. git diff HEAD~1 after the merge shows these diffs) shown by defautl, e.g. using a command line switch?…
Tobias Kienzler
  • 21,611
  • 21
  • 111
  • 204
13
votes
4 answers

How can I get/list/see all the descendants of a commit with git (or gitk)?

If you use gitk --all, you can see all the commits of your repo, from all branches. I want something like that except only the descendants of a given commit.
Pistos
  • 21,309
  • 14
  • 59
  • 74
13
votes
1 answer

git: Is there a command line option for "Sort by date" for gitk?

I'm trying to find a command line option for gitk that has the same effect of "Strictly sort by date" in the "View / Edit view..." window. man gitk shows a very limited number of options compared to those available in the GUI.
digitalsky
  • 349
  • 2
  • 14
13
votes
2 answers

Is it possible to search by commit hash in gitk?

By default the commit search box in gitk searches in various commit fields, but doesn't include the hash. This makes it hard to locate a particular commit, especially if you only have an abbreviated hash. Are there any workarounds for this problem?
static_rtti
  • 46,349
  • 44
  • 123
  • 180
12
votes
2 answers

How do I view a single file's history in GitK?

I have a git repository with a large number of files in it. At some point a bug was introduced into my program, and I have a good idea which file is causing the issue. Now I just need to track down which commit introduced the error. How can I view…
Stevoisiak
  • 16,510
  • 19
  • 94
  • 173
12
votes
3 answers

How to make gitk show only local branches?

How to make gitk show only local branches? Or even better - can I hide remote branches that do not have corresponding local branches?
Sergiy Belozorov
  • 5,165
  • 7
  • 33
  • 69
10
votes
3 answers

Where can I find the source code of gitk?

gitk seems to have very nice interface design and whatnot. I really want to explore its source code. So where can I find it? By gitk, I mean the one to view the repository history of git.
dacongy
  • 2,366
  • 3
  • 27
  • 45
1
2
3
12 13