每次从远程仓库拉代码或者向远程仓库提交代码的时候需要输入密码的解决方法
  执行  

 $ git config --global credential.helper store

  结果: 查看C:\用户\用户名
    1. .gitconfig文件的变化
      git 每次push和pull都需要提交密码

    2.会新建一个文件.git-credentials  用来存储用户名和密码
      git 每次push和pull都需要提交密码

     .git-credentials文件的 内容
      http://用户名:密码 @git网址 

解决问题的原理:密码长期存储

 

相关文章:

  • 2021-05-18
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2021-04-29
  • 2021-08-19
相关资源
相似解决方案