当前位置:   article > 正文

解决git: 'subtree' is not a git command. See 'git --help'.

git: 'subtree' is not a git command.

一、第一方法

git clone https://github.com/git/git.git

cd git/contrib/subtree

sudo make prefix=/usr
sudo make prefix=/usr install
sudo make prefix=/usr install-doc

Then command git subtree should be available.

二、第二种方法

git clone https://github.com/git/git.git

cd contrib/subtree

cp git/contrib/subtree/git-subtree /usr/local/
ln -s /usr/local/git-subtree /usr/bin/git-substree

 三、检查git版本,老版本git不支持,需要升级git

转载于:https://www.cnblogs.com/weihengblog/p/10132758.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/爱喝兽奶帝天荒/article/detail/878876
推荐阅读
相关标签
  

闽ICP备14008679号