linux 安装Git
sudo sed -i '/^failovermethod=/d' /etc/yum.repos.d/*.repoyum install git --disableexcludes=main --skip-broken
shell script
#!/usr/bin/env bashcd /need update folder pathgit fetch maingit checkout -b maingit pull -f origin main
对需要更新的资料夹 做初始化
nlstudio:PASSWORD ( 帐号密码)
git initgit remote add origin https://nlstudio:PASSWORD@gitlab.sample.com/ithelp/testgit.git