我在我的服務器上安裝了git。如何讓git init命令成爲我的服務器上的有效命令
當我嘗試做git init時,它說沒有找到git命令'init'。有誰知道爲什麼?或者是否有解決方案。
- 編輯 -
我試圖通過yum安裝它,然後從建議卸載它
# yum remove git
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: git
Loading mirror speeds from cached hostfile
* base: mirrors.ukfast.co.uk
* epel: mirror.bytemark.co.uk
* extras: mirrors.ukfast.co.uk
* updates: centosr4-msync-dvd.centos.org
Package(s) git available, but not installed.
No Packages marked for removal
這也許不具有文件我的後視鏡,我安裝問題Git的?
下面是嘗試百勝安裝混帳核心
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 2.5 kB 00:00
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 261, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 410, in doTransaction
if self.gpgsigcheck(downloadpkgs) != 0:
File "/usr/share/yum-cli/cli.py", line 510, in gpgsigcheck
self.getKeyForPackage(po, lambda x, y, z: self.userconfirm())
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 3519, in getKeyForPackage
keys = self._retrievePublicKey(keyurl, repo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 3484, in _retrievePublicKey
keys_info = misc.getgpgkeyinfo(rawkey, multiple=True)
File "/usr/lib/python2.4/site-packages/yum/misc.py", line 377, in getgpgkeyinfo
raise ValueError('No key found in given key data')
ValueError: No key found in given key data
給出'EXACT'錯誤信息。 – manojlds 2012-03-02 17:48:16
執行任何git命令,'git clone'等?對不起,只想先弄個簡單的東西。 – macduff 2012-03-02 17:48:53
'git --version' – bitmask 2012-03-02 17:50:38