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

Can you run gitk over SSH/SCP?

I've started editing files over ssh/scp with vim, and it works pretty good. So given that this can be done; is there any way to use SSH / SCP to load a remote repository into gitk locally? I tried gitk scp://root@192.168.XXX.XXX//home/demo but I…
leeand00
  • 25,510
  • 39
  • 140
  • 297
2
votes
2 answers

Gui for git to select revision to compare?

I want to compare different revisions of a single file. On the commandline I can do this by git difftool : :. But I want to use a gui to select which revisions are compared. So, the gui should show a list of…
cknoll
  • 2,130
  • 4
  • 18
  • 34
2
votes
1 answer

Check if some code ever existed in git

I am debugging an app I am working on and noticed that some code is missing that should be there. I am pretty sure that it existed at one point in time and was accidentally (or maybe purposefully) deleted a while ago. I want to know how I can…
Tyler Hilbert
  • 2,107
  • 7
  • 35
  • 55
2
votes
2 answers

git author date bogus as soon as amend or rebase took place

I observe a strange behavior in my git history: I can commit as normal using git gui and author date and committer date are correctly when viewed in gitk. But as soon as I perform an amend via git gui or an rebase via the git bash, all subsequent…
PhilLab
  • 4,777
  • 1
  • 25
  • 77
2
votes
2 answers

gitk showing other changes in different directories in commits

I would like to see commits touching specific directory but in the commits must be listed changes outside of the directory. For example I have: repo/src/moduleA > gitk . So I will see commits touching this moduleA: commit1 commit13 commit45 If in…
nayana
  • 3,787
  • 3
  • 20
  • 51
2
votes
1 answer

git differ logs between two branches

I have created a test git project to figure out how should I get the differ logs between two branches. In most case, we will have such a case: branch master has cherry-picked some commits to master,see below graph: The "I" commit is cherry-picked…
lucky1928
  • 8,708
  • 10
  • 43
  • 92
2
votes
3 answers

How do I get hashes of newer commits than the current one in git?

in git I used gitk to see the hash of a commit that was made weeks ago and I used git checkout with that hash to get my source files to that previous state. Now I want to go to a commit that is a few days later, however gitk only shows commits up…
ulak blade
  • 2,515
  • 5
  • 37
  • 81
2
votes
2 answers

Show new revisions in gitk after git pull

After I do git pull, I want to see the revisions I just fetched in gitk. How can I do this? I know I can see what revisions to use in the output of git pull and I can give them as a parameter to gitk, but I want to do this automatically. (Actually,…
svick
  • 236,525
  • 50
  • 385
  • 514
2
votes
0 answers

gitk cannot find a git repository (from windows context menu)

In Windows it is sometimes faster to check changes in files with graphical Git Commit Tool or Git History tool. These tools can be opened by right clicking on specific files that are in a git repository (displaying these shortcuts in context menu…
chris544
  • 889
  • 2
  • 10
  • 21
2
votes
1 answer

`gitk` program found using the `where` command but cannot be executed?

I'm trying to run gitk on Windows but the console gives me: 'gitk' is not recognized as an internal or external command, operable program or batch file. But then, I can do > where gitk C:\Program Files (x86)\Git\bin\gitk How comes?
Borek Bernard
  • 50,745
  • 59
  • 165
  • 240
2
votes
0 answers

Regexp search as case insensitive in gitk

This post mentioned regexp in gitk is based on pickaxe grep system. How could do search as case insensitive based on this? I saw there is an -i option for git, but it appears cannot pass any extra option in the search box in gitk.
Thomson
  • 20,586
  • 28
  • 90
  • 134
2
votes
1 answer

Paginating commits in gitk while viewing

When using gitk to view the history of a large project, like linux, gitk tries to load all the commits in memory which ultimately freezes the whole machine. This is because the history of the project is too big to be held in RAM. So is there a way…
2
votes
3 answers

Error when starting gitk

When starting gitk on command line im getting the following error: user@comp:~/gitfolder$ gitk Error in startup script: bad geometry specifier "1x-29" while executing "wm geometry . "${w}x$h"" (procedure "makewindow" line 401) invoked…
severi
  • 97
  • 1
  • 6
2
votes
1 answer

Saving view on gitk

How do you make custom views (created in the View->New view menu) persist across gitk sessions? There doesn't seem to be anything related stored in .gitk. Is this impossible to achieve?
loopbackbee
  • 21,962
  • 10
  • 62
  • 97
2
votes
1 answer

Start gitk from git gui command line

Is there a way to start gitk on the master branch of a repo from git gui command line ? I had a look at the doc, the only thing that seems possible is to open a browser on the repo, not showing history. Any clue ? Thanks
GaTTaCa
  • 459
  • 6
  • 18