git config --global credential.helper store
然后操作pull/push 会让输入用户名密码,第一次输入进去。下次再操作pull/push时就不需要输入用户名密码了
GitLab添加ssh-key,操作无需每次输入账号密码
原文:https://www.cnblogs.com/php-linux/p/10473220.html