在我的Xubuntu 14.04系统上,我已经安装了Git,使用以下命令:
作为第一行。在第一行之后,它给出了文件之间的差异,换句话说,工作正常。
sudo apt-get install git
它的工作正常(我才开始学习它),但是执行
git diff
返回值
error: cannot run sensible-paper: No such file or directory
作为第一行。在第一行之后,它给出了文件之间的差异,换句话说,工作正常。
此外,命令
man git
(或任何其他帮助命令,例如 git help commit
) 返回:
man: can't execute sensible-paper: No such file or directory
man: command exited with status 255: (cd /home/max/Desktop/Git Learning && LESS=-ix8RmPm Manual page git-commit(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page git-commit(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=git-commit(1) sensible-paper)
所以我在shell中无法获得有关Git的任何帮助。 我已经谷歌了解了解决方案,但没有找到类似于以上错误的内容。 非常感谢您的任何帮助。
sudo apt-get update && sudo apt-get upgrade
) - rubenvbexport PAGER=less
。或者,可以在每个命令中使用--no-pager
。 - rodrigo