初始化一个目录cron(需要拉取的的是code下的cron目录)

git init cron

进入目录
cd cron/


git remote add -f code ssh://git@192.168.1.3:8080/test/test.git


git config core.sparsecheckout true


echo code/cron/ >> .git/info/sparse-checkout (这句是灵魂,是核心,是光,是电,是唯一的神话)


git pull ssh://git@192.168.1.3:8080/test/test.git master (选取分支拉取)

相关文章:

  • 2022-12-23
  • 2021-04-26
  • 2021-04-05
  • 2022-01-26
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-10
  • 2021-08-22
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案