linux 安裝Git
sudo sed -i '/^failovermethod=/d' /etc/yum.repos.d/*.repo
yum install git --disableexcludes=main --skip-broken
shell script
#!/usr/bin/env bash
cd /need update folder path
git fetch main
git checkout -b main
git pull -f origin main
對需要更新的資料夾 做初始化
nlstudio:PASSWORD ( 帳號密碼)
git init
git remote add origin https://nlstudio:PASSWORD@gitlab.sample.com/ithelp/testgit.git