git没有帮助文件No manual entry for git-**的解决办法

来源:互联网 发布:国内英文域名 编辑:程序博客网 时间:2024/06/16 02:33
[root@localhost man]# git clone http://git.kernel.org/pub/scm/git/git-manpages.gitCloning into 'git-manpages'...warning: redirecting to https://git.kernel.org/pub/scm/git/git-manpages.git/remote: Counting objects: 31321, done.remote: Compressing objects: 100% (51/51), done.remote: Total 31321 (delta 14), reused 0 (delta 0)Receiving objects: 100% (31321/31321), 9.14 MiB | 1.55 MiB/s, done.Resolving deltas: 100% (27273/27273), done.[root@localhost man]#[root@localhost man]#[root@localhost man]# ls git-manpages/man1  man5  man7[root@localhost man]#[root@localhost man]# cp -r /usr/local/share/man/git-manpages/* /usr/local/share/man/[root@localhost man]#[root@localhost man]# git help fetch


这样就可以使用git help命令了~~