--Environnement - CentOS Linux release 7.7.1908 (Core) - git version 1.8.3.1
Si vous installez Git, vous obtiendrez également ses outils visuels, gitk et git-gui. Git --gitk et git-gui | Tutoriel git
J'ai installé Git, je vais donc le vérifier.
#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
...réduction...
============================================================================================================================================================================================
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!
Dans un répertoire où vous n'avez pas cloné le référentiel
Lorsque j'ai appuyé sur la commande git gui, une boîte de dialogue s'est affichée.
Lorsque j'appuie sur la commande gitk, le message" Il n'y a pas de dépôt git ici. "S'affiche.

Dans le répertoire où vous clonez le référentiel
Lorsque j'ai appuyé sur la commande git gui, une boîte de dialogue contenant des informations sur le référentiel était affichée.
Lorsque j'ai appuyé sur la commande gitk, le visualiseur d'historique du référentiel était affiché.
Recommended Posts