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

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

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

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 pointing to commits that are in the filtered view - they…
Dmitry Avtonomov
  • 8,747
  • 4
  • 32
  • 45
0
votes
1 answer

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 -- that also includes all branch heads. By default, gitk invoked like that selects all commits that affect the given path and displays a simplified graph that includes only those commits. If…
Radu Rendec
  • 479
  • 5
  • 6
0
votes
1 answer

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 words" mode?…
user626528
  • 13,999
  • 30
  • 78
  • 146
0
votes
0 answers

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 by using git merge --no-ff worked, but then I…
maratbn
  • 188
  • 1
  • 9
0
votes
1 answer

Reseting gitk GUI

Today I worked as usual on my tasks but from one moment to the next, my gitk GUI was all mixed up: Is there a way to reset the GUI/configure positions of GUI elements for gitk?
SAlex
  • 361
  • 2
  • 10
0
votes
1 answer

What do I need to do to fix the screen refresh issue on XWin (Cygwin)?

I was getting an following error starting gitk/git gui so I installed xinit as per the stackoverflow solution. application-specific initialization failed: no display name and no $DISPLAY environment variable so now I start XWin as XWin & and then…
mck
  • 23
  • 7
0
votes
1 answer

Master branch has extra information about merged branches

The project which I am developing has not neat commit information. The project repository is on Gitlab For merging, fast-forward merge is chosen (without extra merge commit) and source branches are deleted after merging into master But when…
zviad
  • 586
  • 7
  • 18
0
votes
1 answer

How can I hide old commits from "gitk" after rebasing?

In gitk --branches or gitk BRANCH1 BRANCH2 I can refresh the view with F5, but after rebasing or amending commits, the view retains the commits that are no longer being pointed to by any branches. 'gitk master origin/master' Gitk after …
kdb
  • 4,098
  • 26
  • 49
0
votes
1 answer

i don't really understand git extension behavior

I have few questions about git extension because i use it for 2 month now but i actually do things without really understanding what is going on behind. I'll give you my 3 main points that would certainly help me to understand but don't hesitate to…
Hattori
  • 351
  • 4
  • 15
0
votes
1 answer

The command gitk is not found in my local repository

My environment is an Ubuntu 18.04.3 LTS wíth a zsh shell and an 'Oh My Zsh' framework. All commands in git work perfectly, but when I try to run the git repository browser: gitk, in my local repository, in order to see branches graphically, it…
0
votes
1 answer

Is it possible to display difference between 2 revisions with Gitk as one commit?

When I am using gitk rev1..rev2 it shows difference as list of commits between revisions. Is it possible to combine all of commits and to display it as one commit (something like squash) ?
RandomB
  • 3,367
  • 19
  • 30
0
votes
1 answer

I'm having some trouble deleting some commits from Git

Currently my repo is as pictured: I need to delete the top 3 commits as they are the product of faulty automated processes. I want to really delete those commits so that I can get rid of their artifacts cluttering the repo. One of the commits made…
David C
  • 21
  • 3
0
votes
1 answer

gitk not showing diff colors on macOS

I'm using git 2.14.2 and have seen this issue for more than a month on my mac. I have not installed any artificial tcl/tk (which also does not resolve the problem). I'm now using High Sierra but seen that problem also on macOS Sierra before. The…
therealmarv
  • 3,692
  • 4
  • 24
  • 42
0
votes
1 answer

git commit graph displayed by "git" vs. displayed by "gitk": what's going on here?

I am currently taking a look at the SWI Prolog git repository (cloned to my local machine). For this, I display the commit graph using git log --graph --full-history --all --color \ --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" As well as…
David Tonhofer
  • 14,559
  • 5
  • 55
  • 51