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


一、第一方法

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM