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
3
votes
1 answer

Error running gitk

Running gitk from the command line, while at the top level of a Git working directory, produces the following error message, and gitk fails to open: objc[1031]: Objective-C garbage collection is no longer supported. /usr/local/bin/wish: line 2: …
Evan Aad
  • 5,699
  • 6
  • 25
  • 36
3
votes
3 answers

How do you undo a hard reset in Git Gui or Gitk on Windows?

I'm using Git Gui and Gitk on Windows. How do I undo a hard reset from within the past two hours? (Is it possible to do this from these applications, without using the command line?) I saw this SO post, which says that undos are possible before…
Winston C. Yang
  • 1,497
  • 2
  • 18
  • 27
3
votes
1 answer

How to set diff options (--compaction-heuristic) in gitk

The git 2.9 release came with an experimental diff algorithm --compaction-heuristic. I've set up git, and git gui to use this. However I can't figure out how to configure gitk to use this option. I'm aware of the .gitk config file, but I can't…
crea1
  • 11,077
  • 3
  • 36
  • 46
3
votes
4 answers

git client which can do a directory diff

I know that the latest git can use this command to directory diff two versions: git difftool -d But I can't find any git clients(GUI) which can do this job. I've tried tortoisegit smartgit git-cola git-extentions github gitk None of…
shengy
  • 9,461
  • 4
  • 37
  • 61
3
votes
1 answer

Gitg behavouir as gitk --all

I switched to gitg from gitk to visualize my git tree. There is one thing I can't stand. Let's say I have two branches (dev, master) that look like this: Anytime I checkout to master the visualization changes: That means that the branch I am…
tsusanka
  • 4,801
  • 7
  • 36
  • 42
3
votes
1 answer

Tell gitk to draw "busier" branch on the right

In our project we use a master branch for merging in regular feature branches (left side of the image), and additionally a long-running branch to integrate upstream commits (right side of image). We use this integration branch because upstream is…
Nevik Rehnel
  • 49,633
  • 6
  • 60
  • 50
3
votes
2 answers

Git for windows launch gitk context menu with gitk-all

I have Git for Windows installed. When I right click on a project and select Git History I get the Gitk window, but every time I do so I need to set the view to see all branches. Even when I edit the view and set it to Remember, I still do not get…
Ralph M. Rivera
  • 769
  • 3
  • 12
  • 25
2
votes
1 answer

How to build gitk?

How to build gitk on Windows 10? I have installed IronTcl so I can run my local modifications to gitk interpreted but I would like to make it a standalone executable. Other than this single-file script I'm not familiar with tcl at all and I seem to…
Iksa
  • 53
  • 6
2
votes
2 answers

How can I run Gitk on WSL 2?

How can I run Gitk on WSL 2? I already installed Gitk in WSL 2. After I installed Gitk, I tried to run it but it failed with below error log: application-specific initialization failed: no display name and no $DISPLAY environment variable Error in…
Kang
  • 75
  • 1
  • 9
2
votes
1 answer

How to prevent gitk from removing part of branch name before slash?

When I am using gitk GUI and I checkout to (create) remote-tracking branch (right-click and checkout) (origin/type/branch), branch named branch is created - not type/branch. Is there possibility how to preserve also the part before the last slash?
2
votes
0 answers

Invoking Beyond Compare via Git Bash with diff file as output

I need some help adding arguments to the Git difftool. I have Beyond Compare (BC) configured as a diff tool for Git. If I invoke the following line, Beyond Compare will successfully open with a diffed file: git difftool What I would like to do is…
2
votes
2 answers

How to change gitk language (on a Mac)?

I cannot find an option in the Preferences menu to change the language. I know it has to be done somewhere else, from a terminal window I think, but I don't remember the commands. How can I change gitk interface messages language ?
wip
  • 2,313
  • 5
  • 31
  • 47
2
votes
1 answer

What is the function of the gitk.cache file in the. git folder?

After using git for a while, I found that there is a gitk.cache file in the. Git folder. What is the function of this file? What can be used for? Is there any potential safety hazard if it is leaked out?
MiniServer
  • 23
  • 2
2
votes
2 answers

How to remove the stale gitk-tmp file?

I'm getting the error shown on the image below after running gitk command on Git Bash shell and browsing my diffs on gitk gui tool. The problem is that I can't find the stale gitk-tmp file this dialog is referring to. I've looked for the path…
Ulysses Alves
  • 2,297
  • 3
  • 24
  • 34
2
votes
3 answers

Display commiter date in gitk instead of author date

I am using gitk to browse my git repo and i would like to print the commit date of commit instead of author date in gitk (on the third column). Can you tell me how to do it ?
user43968
  • 2,049
  • 20
  • 37