1 . git config --global credential.helper store
2. 再次推送到origin仓库,输入name和密码
3. 密码就会保存到相应的地方 ~/.git-credentials
通过以上步骤运行一次即可永久保存秘密
1 . git config --global credential.helper store
2. 再次推送到origin仓库,输入name和密码
3. 密码就会保存到相应的地方 ~/.git-credentials
通过以上步骤运行一次即可永久保存秘密