--Environment - CentOS Linux release 7.7.1908 (Core) - git version 1.8.3.1
If you install Git, you will also get its visual tools, gitk and git-gui. Git --gitk and git-gui | git Tutorial
I have Git installed, so I'll check it.
#Absent?
$ git gui
git: 'gui' is not a git command. See 'git --help'.
Did you mean one of these?
gc
grep
init
pull
push
#Absent
$ gitk
/usr/local/bin/gitk: line 3: exec: wish: not found
$ sudo yum install git-gui gitk
...abridgement...
============================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================
Installing:
git-gui noarch 1.8.3.1-20.el7 base 238 k
gitk noarch 1.8.3.1-20.el7 base 151 k
Installing for dependencies:
tcl x86_64 1:8.5.13-8.el7 base 1.9 M
tk x86_64 1:8.5.13-6.el7 base 1.4 M
Transaction Summary
============================================================================================================================================================================================
Install 2 Packages (+2 Dependent packages)
Total download size: 3.7 M
Installed size: 9.5 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): git-gui-1.8.3.1-20.el7.noarch.rpm | 238 kB 00:00:00
(2/4): gitk-1.8.3.1-20.el7.noarch.rpm | 151 kB 00:00:00
(3/4): tk-8.5.13-6.el7.x86_64.rpm | 1.4 MB 00:00:00
(4/4): tcl-8.5.13-8.el7.x86_64.rpm | 1.9 MB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 14 MB/s | 3.7 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:tcl-8.5.13-8.el7.x86_64 1/4
Installing : 1:tk-8.5.13-6.el7.x86_64 2/4
Installing : gitk-1.8.3.1-20.el7.noarch 3/4
Installing : git-gui-1.8.3.1-20.el7.noarch 4/4
Verifying : git-gui-1.8.3.1-20.el7.noarch 1/4
Verifying : gitk-1.8.3.1-20.el7.noarch 2/4
Verifying : 1:tcl-8.5.13-8.el7.x86_64 3/4
Verifying : 1:tk-8.5.13-6.el7.x86_64 4/4
Installed:
git-gui.noarch 0:1.8.3.1-20.el7 gitk.noarch 0:1.8.3.1-20.el7
Dependency Installed:
tcl.x86_64 1:8.5.13-8.el7 tk.x86_64 1:8.5.13-6.el7
Complete!
In a directory where you haven't cloned the repository
When I hit the git gui
command, a dialog was displayed.
When I hit the gitk
command, I got the message" There is no git repository here. "
In the directory where you are cloning the repository
When I typed the git gui
command, a dialog with repository information was displayed.
When I hit the gitk
command, the repository history viewer was displayed.
Recommended Posts