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.

202 questions
27
votes
2 answers

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,592
  • 1
  • 23
  • 28
26
votes
2 answers

How to change UI colors for gitk?

I use gitk for keeping an eye onto branches, commits and so on ... I am running Ubuntu 14.04. and noticed that the background color of the branch label is different in comparison to what I am used to on another machine running Ubuntu 13.10.…
JJD
  • 50,076
  • 60
  • 203
  • 339
23
votes
3 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. I have a good idea which file is causing the issue, I just need to track down which commit introduced the error. How can I view the…
Stevoisiak
  • 23,794
  • 27
  • 122
  • 225
23
votes
6 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
  • 295
  • 4
  • 7
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…
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
  • 4,103
  • 9
  • 37
  • 41
19
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
  • 17,142
  • 9
  • 61
  • 77
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
  • 59,775
  • 49
  • 126
  • 179
17
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
  • 53,760
  • 47
  • 136
  • 192
16
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
  • 23,070
  • 14
  • 64
  • 77
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
  • 939
  • 4
  • 18
  • 45
15
votes
1 answer

Regular fonts for git-gui and gitk have disappeared

I'm on Ubuntu 16.04. Recently, the fonts in my git-gui and gitk have suddenly changed. I have tried the other fonts proposed but none of them correspond to the previous one that I was used to. This is what it looked before the bug (taken from the…
matthieu
  • 1,412
  • 1
  • 11
  • 33
15
votes
4 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,856
  • 7
  • 40
  • 73
14
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
  • 379
  • 4
  • 14
14
votes
2 answers

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
  • 25,759
  • 22
  • 127
  • 221
1
2
3
13 14