安装 git 后 git gui 和 gitk 不存在
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14673257/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git gui and gitk not present after installing git
提问by OtagoHarbour
I am using Ubuntu 11.10 and have just installed git using
我正在使用 Ubuntu 11.10 并且刚刚使用安装了 git
sudo apt-get install
The basic git commands seem to work. (I have created a repository and added a directory structure to it.) But not git gui or gitk. This is what I get
基本的 git 命令似乎有效。(我已经创建了一个存储库并向其中添加了一个目录结构。)但不是 git gui 或 gitk。这就是我得到的
peter@peter-Inspiron-620:/var/www$ sudo git gui
git: 'gui' is not a git command. See 'git --help'.
Did you mean one of these?
grep
init
pull
push
peter@peter-Inspiron-620:/var/www$
For gitk
对于 gitk
peter@peter-Inspiron-620:/var/www$ sudo gitk
sudo: gitk: command not found
peter@peter-Inspiron-620:/var/www$
Do those commands run on Ubuntu and do I need to install them separately?
这些命令是否在 Ubuntu 上运行,我是否需要单独安装它们?
Thanks, Peter.
谢谢,彼得。
回答by Fred Foo
sudo apt-get install git-gui gitk
回答by Bull
sudo apt-get install git-gui gitk
After installing it, it's very probable that no menu item appears in your desktop or menues. To open them, open Terminal (usually, Ctrl+T) and type
安装后,很可能没有菜单项出现在您的桌面或菜单中。要打开它们,请打开终端(通常是 Ctrl+T)并输入
git gui
or
或者
gitk
回答by Kavya
When u get error during installing git gui as below:
sudo apt-get install git-gui
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git-gui is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
当你在安装 git gui 时出现如下错误: sudo apt-get install git-gui 正在读取包列表...完成构建依赖树
读取状态信息...完成 包 git-gui 不可用,但被另一个引用包裹。这可能意味着软件包丢失、已过时或只能从其他来源获得
E: Package 'git-gui' has no installation candidate
E: 包 'git-gui' 没有安装候选
Try this command as 1. sudo apt-get install update 2. sudo apt-get install git-gui Then it worked.
试试这个命令 1. sudo apt-get install update 2. sudo apt-get install git-gui 然后它工作了。
回答by Milson
you can do install all git functions using command:
您可以使用以下命令安装所有 git 函数:
sudo apt-get install git-core git-gui git-doc
回答by Prashant_M
To install git-gui type this command:
要安装 git-gui,请键入以下命令:
sudo apt-get install git-gui
须藤 apt-get 安装 git-gui
Then to open git-gui type:
然后打开 git-gui 类型:
git citool
git citool
回答by jlmontes
For a centos system you can use the following command:
对于 centos 系统,您可以使用以下命令:
sudo yum install git-gui gitk
sudo yum install git-gui gitk