当git从windows机器推送http时,自动输入用户名/密码

Jon*_*nah 2 windows git

我正从我的Windows框推送到从http(而不是ssh)地址克隆的存储库.每推一次,我都要输入我的u/p.我想自动化这个过程.我尝试过以下方法:

$ git config credential.helper cache
$ git config credential.helper 'cache timeout=360000'
Run Code Online (Sandbox Code Playgroud)

但这些设置没有任何效果,我仍然必须每次输入u/p.有没有办法让它自动化?

tom*_*mgi 6

使用_netrc文件来存储您的用户名/密码为远程机器,描述在这里