linux下安裝的git,協助文檔不能用

來源:互聯網
上載者:User

故事情節的git版本為1.8.0-rc2,如下所示:

[root@bogon /]# git --version

git version 1.8.0-rc2

 

今天在CentOS上安裝了git(下載原始碼編譯),安裝完後,發現git的協助命令不能用,如所示,提示:No manual entryfor git-***。

[root@bogon /]# git commit –help

No manual entry for git-commit

[root@bogon /]#

[root@bogon /]#

[root@bogon /]# git status --help

No manual entry for git-status

[root@bogon /]#

[root@bogon /]#

[root@bogon /]#

       折騰好久才發現,是因為git的協助文檔(man page)缺失導致,可以去git的man檔案夾驗證下(我的地址是:/usr/local/share/man),比如git commit的man page對應著一個名為git-commit*的協助手冊。

 

可以從以下兩個地方下載比較權威的man page文檔:

①:http://code.google.com/p/git-core/downloads/list

 

②:從以下地址gitclone

git://git.kernel.org/pub/scm/git/git-manpages.git

http://git.kernel.org/pub/scm/git/git-manpages.git

https://git.kernel.org/pub/scm/git/git-manpages.git

 

將下載下來的man page檔案拷貝進git的man檔案夾裡即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.