方法一:
安裝好git之後一般會在C盤的C:\Users\Administator目錄下生成 .gitconfig配置文档。用文档編輯工具打開該文档
添加:
[user] name = wb-ly409739 // 你的用戶名 email = wb-ly409739@alibaba-inc.com // 你的git郵箱賬號 [credential] helper = store
然後保存就可以了。
方法二:
直接在git bash 中執行命令:
git config --global credential.helper store
在輸入一次賬號密碼就可以保存了