一、第一方法

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

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2021-05-01
  • 2021-10-20
相关资源
相似解决方案