Windows

执行以下命令:

git config --global credential.helper store
git config --global user.name "李拜天"  # 你的姓名
git config --global user.email "rd@sinohotrunner.com"  # 企业邮箱
git config --global pull.rebase true

在第一次连接时输入账号密码,以后就不需要再输入了。

Linux & Mac

执行以下命令:

touch ~/.git-credentials
echo "https://username:password@dev.yudotmc.com" >> ~/.git-credentials
git config --global credential.helper store
git config --global user.name "李拜天"  # 你的姓名
git config --global user.email "rd@sinohotrunner.com"  # 企业邮箱
git config --global pull.rebase true
作者:李拜天  创建时间:2021-12-29 13:12
最后编辑:李拜天  更新时间:2023-03-20 16:16