1. 打开 TortoiseGit 设置,编辑 .gitconfig 文件,如图:

  

 

2. 添加下面两行配置,如图:

  

  [credential]
    helper = store

3. 保存退出即可