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

Connected branches in Git

When I used gitk to check my branches, I found the following: I created pretty_url, switched to it, worked on stuff, committed, then switched to master branch (which was clean), then ran git merge pretty_url, and checked with gitk, and found…
Victor
  • 13,010
  • 18
  • 83
  • 146
2
votes
1 answer

Meld as diff tool in gitk in Windows

I am always annoyed when I use gitk an it forces me to configure a separate diff tool. Now while this works fine for me in Linux, it is an absolute hell on Windows. I am trying to use Meld, so I wrote a .bat, for mapping parameters: meld.exe %2…
abergmeier
  • 13,224
  • 13
  • 64
  • 120
2
votes
2 answers

Remove a branch including its commits

I have created a branch where I was trying an approach to a problem which didn't work out, so I want to delete the branch, including all commits I made on it. For the sake of the argument, my branches look like this (when viewed with…
JBentley
  • 6,099
  • 5
  • 37
  • 72
2
votes
2 answers

Some git tags not visible in gitk

In the gitk view, I notice some (but not all) git tags missing. git tag shows those tags, and I am also able to checkout by specifying those tags, so the tags got created correctly. What should I try to understand and debug this problem?
Masked Man
  • 1
  • 7
  • 40
  • 80
2
votes
2 answers

Subversion analog of gitk or hgk

I know, that I can use gitk for viewing commit history of git-based repository, I also now that I can use hgk for the same purpose, while using Mercurial. I need something like this for Subversion. I'm using Ubuntu, so it has to work on Linux-based…
aga
  • 27,954
  • 13
  • 86
  • 121
2
votes
1 answer

gitk: show branch name on hover

Could you tell how to make gitk tool show the branch name on hover or suggest the tool which is able to do so? gitk shows branches tangle where the branches are nameless, and I have to guess which is master, which stable etc.
Paul
  • 25,812
  • 38
  • 124
  • 247
2
votes
1 answer

How to see local uncomitted changes in github

In our company we are using git. If I have some file which isn't there and I run command gitk, I can see red dot with description: Local uncomitted changes, not checked in to index Now I create new repository in GitHub because I want to work with…
hudi
  • 15,555
  • 47
  • 142
  • 246
1
vote
1 answer

Browse old revisions of a git Repository

In SVN/TortoiseSVN, there was the GUI 'Repository Browser', which allowed to browse a previous 'state' of a repository. For example, I could go to log, pick an old revision, right-click on it, choose 'Browse repository', and then I had an…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
1
vote
1 answer

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, "Cannot find a git repository here." However if I'm in…
Andymang
  • 61
  • 6
1
vote
1 answer

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 gitk-1:2.25.1-1ubuntu3.2 on Ubuntu 20.04. Before this…
imz -- Ivan Zakharyaschev
  • 4,921
  • 6
  • 53
  • 104
1
vote
1 answer

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 of commits: How do I get the short form, i.e.…
Neman
  • 157
  • 1
  • 11
1
vote
1 answer

Mac os Catalina(10.15.7) not able to open gitk

I have installed git and git-gui with the following commands: brew install git brew install git-gui git config --global --add alias.gui '!sh -c '/usr/local/opt/git/libexec/git-core/git-gui'' Now when I run gitk I am getting some error that I…
1
vote
1 answer

How to show only given commits (logically same as `git log --no-walk`)

I have a huge history and I'm only interested in given commits (say I have a list of 10 commit sha1s). How to start gitk, that is gitk --SOMETHING sha123 sha234 sha345 ... so that only the given commits are rendered in gitk? I know that I can do…
Mikko Rantalainen
  • 14,132
  • 10
  • 74
  • 112
1
vote
0 answers

How do you show files outside the pathspec when doing gitk

I want to perform gitk to visually see which commits have core files that have changed but I also want to know which commits touch files that are also touched within the commit When I do gitk core-dir/ as I expect I see the commits that touch…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
1
vote
1 answer

how do you separate the lines of each branch on git?

I want to separate each line in the branch to make it easier for me to read it. How do you change one image to make it look like Figure 2?