①執行以下命令:
git config --global credential.helper store
②找到git的配置文件 .gitconfig ,添加一下內容,效果與①相同
[credential]
helper = store
原理:這個命令是在本地生成一個賬號密碼文件,這樣就不用每次都輸入了(但是還得輸入一次)
這個方法對於windows,linux都是通用的!!!
如果想查看賬號密碼,可通過命令查看
cat ~/.git-credentials
①執行以下命令:
git config --global credential.helper store
②找到git的配置文件 .gitconfig ,添加一下內容,效果與①相同
[credential]
helper = store
原理:這個命令是在本地生成一個賬號密碼文件,這樣就不用每次都輸入了(但是還得輸入一次)
這個方法對於windows,linux都是通用的!!!
如果想查看賬號密碼,可通過命令查看
cat ~/.git-credentials