單個項目免登陸
將下面兩天存入(如果不想免登錄,則注釋即可)
文件路徑.git/config
,輸入下面的參數
[credential]
helper = store
全局免登錄
先運行下面的命令,再登錄
git config --global credential.helper store
全局設置用戶名和密碼
git config --global user.mail sonny.zhang@foxmail.com
git config --global user.name sonny-zhang
去掉免登錄
git config --system --unset credential.helper