直接进入主题,每次提交代码,都需要输入一次username、password,有点繁琐。那如何配置一次即可呢?
本文假设前提,你已有git账户密码、配置好了key。
git安装
  直接一步步next
查看git system配置
git config –systeml -l
 | 12
 
 |  $ git config --system -lcredential.helper=manager
 
 | 
| 12
 
 | #重置managergit config --system --unset credential.helper
 
 | 
git 账户、密码存储配置-.gitconfig
| 12
 3
 4
 5
 
 | [user]name = your username
 email = your email
 [credential]
 helper = store
 
 | 
git 账户密码输入
  
查看git配置完毕后
git config –global -l
| 12
 3
 4
 
 | $ git config --global -luser.name=your username
 user.email=<your email>
 credential.helper=store
 
 | 
git config –local -l
 | 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 
 | $ git config --local -lcore.repositoryformatversion=0
 core.filemode=false
 core.bare=false
 core.logallrefupdates=true
 core.symlinks=false
 core.ignorecase=true
 branch.master.remote=origin
 branch.master.merge=refs/heads/master
 user.name=your username
 user.email=<your email>
 
 | 
      本文作者:前端analysis
      
      版权声明: 本文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处!
     
    
    
    
      
    
    
    
    
  
    
    
    
      
        
        若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏