Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when starting gitk

Tags:

git

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 from within
"makewindow"
    (file "/usr/bin/gitk" line 12258)

Im running Ubuntu 14.04. This problem only happens with gitk (for example git gui works normally). I have tried uninstalling/reinstalling gitk (and git in general) but the problem still exists.

like image 945
severi Avatar asked Jun 25 '26 09:06

severi


2 Answers

I had the same problem, I addressed it by opening the .gitk in an editor, and removing the following line:

set geometry(main) 1x-29+-1930+14

Alternatively, deleting the .gitk file from your home directory should also work.

like image 150
Marc Avatar answered Jun 27 '26 00:06

Marc


I know the question is very old, but I've encountered the same problem (accidentally pressed to me an unknown combination of keys) and maybe my solution can be helpful to someone.

  1. Open the config file in the .git folder of a project (PROJECT/.git/config).
  2. In the [gui] section, remove the geometry option.
  3. Restart the app.
like image 25
Milan Miscevic Avatar answered Jun 26 '26 22:06

Milan Miscevic