- git config --global credential.helper store
- git config --global user.email “你的邮箱”
- git config --global user.name “你的github/gitLab用户名”
- git push / git pull 这里的主要目的是唤醒用户名、密码输入窗口
- 输入你的用户名、密码,这时候已经系统已经将你的用户名密码全局保存,以后就不必再输入了。
Git一次性设置用户名密码
最新推荐文章于 2023-09-08 08:38:32 发布