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
Filter by
Sorted by
Tagged with
18 votes
2 answers
3k views

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 ...
58 votes
2 answers
28k views

Can I add metadata to git commits? Or can I hide some tags in gitk

I want to associate custom metadata with a git commit. Specifically to record a review ID from a code review but it could be anything. Tags seem a natural way to do that but I expect to have a ...
29 votes
2 answers
26k views

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 ...
1 vote
1 answer
22 views

How to create a gitk view which always shows work done so far on an interactive rebase (with -i or --interactive option)

I'm doing an interactive rebase (git rebase -i master while on my_branch). I'm using a gitk view which shows only particular branches (the Branches & tags field of the Edit view dialog is set to ...
0 votes
0 answers
27 views

How to use tools like gitg and gitk in windows with wsl ubuntu 22.04?

How to use tools like gitg and gitk in windows with wsl ubuntu 22.04 ? I have windows 11 and installed wsl on in have ubuntu 22.04 LTS on it, Now How to use the tools like gitg na gitk on it like we ...
1 vote
0 answers
13 views

Use the patience algorithm with gitk

I like to view my commit history using gitk: it's simple, it's bundled with git, and it's fast. However, it seems that gitk does not view diffs according to the algorighm specified in my git global ...
344 votes
15 answers
251k views

Install gitk on Mac

How can I install gitk on a Mac? From their official website, it seems gitk comes with Git, but the version of my Git (git version 1.7.12.4 (Apple Git-37)) does not come with gitk. brew install gitk ...
4 votes
2 answers
290 views

Tell gitk to ignore all branches that match pattern

Suppose I have some branches with names beginning with inactive-. As their names suggest, these branches are inactive; I'm keeping around for archival purposes. I want to tell gitk to ignore those ...
358 votes
4 answers
140k views

Difference between author and committer in Git?

I am trying to make a commit like git commit --author="John Doe <[email protected]>" -m "<the usual commit message>" where John Doe is some user in whose name I want to make the commit. It ...
23 votes
6 answers
5k views

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.
1 vote
0 answers
233 views

Git-Gui / Gitk Broken interface cause crash on kde plasma wayland

Context Few months ago (I don't remember a specific cause), the gitk UI starts showing a strange behavior. 80% of the time, when I start the app in a repository it will display a broken interface. And ...
38 votes
1 answer
8k views

gitk equivalent of git log --follow <full path to file>

So I have a file called one.txt that I have been modifying over the years on master branch. gitk one.txt will show the entire history of that one particular file. However after I changed one.txt => ...
3 votes
2 answers
436 views

How to fix the Gitk error : Expected integer but got ""

How to fix this error, when I want resize gitk inner windows I get this error and nothing is showing. Can I reset Gitk without uninstalling git?
1 vote
0 answers
41 views

Does `gitk` have an option to automatically refresh its view (every 2 seconds, for example)

gitk supports F5 and Shift+F5 bindings to refresh its view. Is there any way to have it do that automatically? For example, something similar to the refresh-interval option in tig would work for me.
157 votes
6 answers
151k views

Viewing full version tree in git

I am using the command line version of Git and gitk. I want to see the full version tree, not just the part that is reachable from the currently checked out version. Is it possible?
2 votes
1 answer
71 views

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 ...
27 votes
2 answers
4k views

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 ...
6 votes
1 answer
1k views

How to continue using GitBash after calling gitk?

After using some commands e.g. gitk I can't keep using the terminal. I need to terminate gitk and then I can keep typing commands. Is there a way to open a program and keep using the terminal? I'm ...
4 votes
2 answers
461 views

Is it possible to configure the diff in gitk?

When clicking a file in gitk it is compared to the previous version of this file. It looks like the files are compared with git diff, and it's possible to configure very few parameters (basically the ...
4 votes
1 answer
544 views

definition of gitk's "Mark Branch Sides" option

In gitk, there is an option in the "Edit View" (F4) window called "Mark branch sides". It seems to correspond to the --left-right option: +set known_view_options { + {perm b . {} ...
0 votes
1 answer
245 views

I can't delete this Git detached head

I have a git repo with two branches: kristof (my name) and master. I messed something up. When running gitk, I can see the following: As you can see, there is a commit (already pushed remotely) at ...
15 votes
4 answers
5k views

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?
0 votes
1 answer
116 views

Can't open gitk

I can't open gitk shows some error about no authorization, this happen because once I couldn't open and I try to install from brew now if I type type -a git shows Can someone help me?
-1 votes
1 answer
324 views

Everything up-to-date, but i still get 1 commit ahead, 2 commits behind :/

I had a issue with 7 commits ahead of main, 1 behind..., somehow fixed, partially. But I still get 1 commit ahead, 2 commits behind. Doing git rebase master git push --force-with-lease origin ...
24 votes
3 answers
17k views

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 ...
45 votes
4 answers
5k views

gitk error: autorelease pool page corrupted

Since this morning when I try to use gitk on a project with a git instance it gives me the below error. This never happened to me since today and I have used gitk for months now. The only difference I ...
2 votes
1 answer
1k views

gitk: "Cannot find a git repository here" when running in WSL 2

I am trying to run gitk.exe (the program installed with Git for Windows) from WSL 2. If I do this in a repository sitting on my WSL virtual drive, such as ~/path/to/repository, I get the error, "...
0 votes
1 answer
194 views

How can I visualize per-character differences in Git Gui staged changes view?

Currently it only shows the lines that are different. Is there any way to make it visualize per-character difference inside those lines, same way as it does in Github here or in gitk in "color ...
11 votes
1 answer
5k views

How can i configure font size in gitk? [closed]

Using Linux, how can i configure font and font size in gitk? Looking through the menus can be quite frustrating as they offer very little configuration possibilities.
2 votes
2 answers
5k views

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 ...
1 vote
2 answers
481 views

Alternate diff tool not firing from gitk for Windows

I have git cli and gitk working fine. I use Beyond Compare as a diff tool, and configured git via the steps I found here. I can see that these commands kicked in here: But when I use the "Diff&...
14 votes
2 answers
4k views

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) ...
6 votes
2 answers
533 views

gitk do not show the diff anymore. (Local changes checked in to index but not committed)

I can use the gitk tool to view the current changes that have do not committed yet. But when I update the git from 2.29.2.windows.3 to 2.33.0.windows.2 diff is gone. only show Local changes checked ...
1 vote
1 answer
229 views

How to fix gitk that suddenly has got broken with error: can't read "arcnos()": no such element in array

gitk used to work fine until recently, when it started showing an error like: can't read "arcnos()": no such element in array and stopped showing the diffs etc. normally. This happened with ...
4 votes
2 answers
673 views

Any way to control the default view of gitk

I use gitk from Git for Windows. By default it seems to open with a view that only displays the currently checked out branch. I have a different saved view which is the one that I use 90% of the time....
0 votes
1 answer
180 views

GIT tree is messed up

My Git tree looks like this. All I did was create two branches A and B and then merged them in one after the other after rebasing with master. then I deleted those branches from remote as well as ...
0 votes
0 answers
43 views

What's the meaning of `@@ -6,7 +6,6 @@` in gitk's diff panel? [duplicate]

I am confused about the @@ -a,b +c,d @@ in gitk's diff panel, and i find it will change with lines of context, so can any kind people tell me what does it really mean?
0 votes
1 answer
152 views

gitk - don't show labels for branches that don't match glob or regexp

I'm in a huge repo with lots of committers and branches all over. I use gitk to visualize history and normally I limit the output using --glob=*IDENTIFIER*. However, if there are some branches ...
3 votes
1 answer
376 views

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 ...
71 votes
7 answers
58k views

A pretty and feature rich Git GUI for Linux [closed]

I was checking out for a rich GUI for Git on Linux. As of late, I have started using it a lot and find that even though command-line is very useful, I would still want a GUI at my disposal since I am ...
0 votes
1 answer
342 views

How to display all Git branch heads AND commits that affect a specific file in a single graph

I would like to get a similar view to gitk --all -- <path> that also includes all branch heads. By default, gitk invoked like that selects all commits that affect the given path and displays a ...
2 votes
2 answers
451 views

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 ...
36 votes
4 answers
3k views

Gitk lower panel cannot resize

In gitk there are two panel, the top panel which display mostly the list of commits, and the bottom panel which shows changes in this commit. Somehow, since this week I cannot adjust the height of ...
4 votes
4 answers
9k views

gitk cannot find a GIT repository

When I run gitk, a Tk window pops-up saying that "It cannot find a GIT repository here". What am I missing? These are the steps I followed. Forgive me if I missed something stupid. [~/TEMP]$ ls [~/...
1 vote
1 answer
211 views

How to display short form of commit hash in gitk?

This seems like it should be a simple display preference... I use Gitk to browse a repo and find an interesting commit. The full 40 char commit/SHA1 hash of the current commit appears under the list ...
0 votes
0 answers
122 views

Weird output from 'git log --graph' when trying to do nested sub-groups of commits

So I've been experimenting with groups of commits as discussed here -- Is there a way to group commits in Git? and here -- https://news.ycombinator.com/item?id=27722221 Having simple groups of commits ...
9 votes
1 answer
599 views

Gitk can't read treediffs error

I got the following error when launching gitk > View > New View > Select All refs > OK : can't read "treediffs(23eda73bba89ba7de9605f28f124fa7d9d67528f)": no such variable can't read "treediffs(...
2 votes
1 answer
39 views

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 ...
1 vote
1 answer
897 views

gitk unknown color name "lime"

with git 2.13 gitk fails to start for an unknown color name "lime". Some old fix was to replace "lime" with a string, but there is no such "lime" anywhere in this latest ...
8 votes
3 answers
5k views

Gitk don't work because of strange error macOS 11 or later required

When starting gitk command line getting the error. It's strange because I have newest version of Mac OS 11.1 I just upgraded git but it doesn't helped. Any ideas what to do? macOS 11 or later required ...

1
2 3 4 5