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
7
votes
2 answers

What are some Alternatives to Gitk that can be used in Windows Powershell?

I'm using windows powershell to manage git, but am limited in that it can't seem to run the Gitk command. (At least by default) Are there any other tools I can use from PS or is there a way I can force PS to interpret the Gitk launch script…
Alex C
  • 16,624
  • 18
  • 66
  • 98
7
votes
1 answer

What is the format of regular expressions in gitk?

I'm trying to use the find/"adding/removing string"/regular expression option in gitk. The syntaxes I have tried don't work, and I can find no docs that describe the syntax of the regular expressions it accepts. I'm trying to match both Modem_Wakup…
Tim Schaeffer
  • 2,616
  • 1
  • 16
  • 20
7
votes
1 answer

How do I "unmark" a commit in gitk?

I mis-click "mark this commit" in gitk. I'm glad it happened, as I'd never looked at or thought about the features it is associated with. But now that I've seen them, I'd like them to go back to being greyed out. So I want to "unmark" the…
Brondahl
  • 7,402
  • 5
  • 45
  • 74
7
votes
4 answers

Starting gitk Error

When I'm loading gitk I get an error about an argument Error in startup script: bad argument "zoomed": must be normal, iconic, or withdrawn while executing "wm state . $geometry(state)" (procedure "makewindow" line 320) invoked from…
23tux
  • 14,104
  • 15
  • 88
  • 187
6
votes
4 answers

Git: how can git/linux maintainers maintain so many branches

Personally, if I look at the git or the linux repo with gitk, I am totally overwhelmed by the huge amount of merges/branched. I have absolutely no clue what is going on. I assumed that in general you try to have an as linear history as possible and…
Florian Kaufmann
  • 803
  • 6
  • 13
6
votes
2 answers

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 in to index but not committed I don't know what…
Carson
  • 6,105
  • 2
  • 37
  • 45
6
votes
2 answers

How to add better copy detection to gitk?

In command line Git, the show, diff and log commands have got an option to --find-copies-harder. Is there a way I can tell (or patch) gitk to use this, too? I need this from time to time, and my projects are small enough such that I don't care about…
Robert Pollak
  • 3,751
  • 4
  • 30
  • 54
6
votes
2 answers

Can gitk show all commits EXCEPT those by a given author?

I want to use gitk to view all commits except those by a given author. Something like the following: gitk --author=!joe Is this possible?
David Hansen
  • 2,857
  • 2
  • 21
  • 19
6
votes
3 answers

Error running gitk on macOS 10.12.6

I installed brew and gitk as indicated in this SO post. I'm running on macOS 10.12.6. git still works fine, but when I try to run gitk from the terminal, I get: Error in startup script: osascript: OpenScripting.framework - scripting addition…
Mike
  • 3,084
  • 1
  • 25
  • 44
6
votes
1 answer

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 using GitBash on Windows.
matzar
  • 287
  • 2
  • 19
6
votes
2 answers

How to git log of all branches of a remote?

In my local repository, I add a new remote and fetch its history: $ git remote add foo_remote git@github.com:joe/foo.git $ git fetch foo_remote Now, how to view the log of all branches of only this remote? I am interested in viewing the commits…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
6
votes
0 answers

How to customise UnGit branch graph?

I'm using ungit for visualize branches and merges in my project. I don't use git just for the programming purposes and there are a lot of branching and merging. Currently I've tested some apps from git log and gitk to Source Tree. (please check this…
SddS
  • 587
  • 1
  • 5
  • 17
6
votes
3 answers

How to make Git Extensions browser show all commits like gitk --all

The Git Extensions repository browser seems to be more versatile than gitk in many ways. However, my very favorite command line option for gitk is --all. gitk --all shows all commits, including ones not reachable by any branch or tag. This is very…
Klas Mellbourn
  • 42,571
  • 24
  • 140
  • 158
6
votes
4 answers

How do I do the reverse of gitk's "Write commit to file"?

I have written a commit to a file from gitk by right-clicking the commit and selecting "Write commit to file". How do I apply the commit from this file? I can do git apply, git add and git commit combo, but isn't there a one-step command to just…
Šimon Tóth
  • 35,456
  • 20
  • 106
  • 151
5
votes
1 answer

gitk shows blank in mac os Catalina

my system is macOS Catalina 10.15.7 (19H2) I installed git via brew, below shows the version installed git --version git version 2.24.3 (Apple Git-128) and the version for git-gui is 2.30.0 when i type gitk, in either iterm2, or the ios builtin…