Remote Pushurl won't work

那年仲夏 提交于 2019-12-06 03:47:39

I have found how you can solve this, so to aswer my own question:

The trick is to upload to Git1.7.8 (or higher). Now you get this with the same settings and without a _netrc file:

$ git push github master
Password for 'https://WouterJ@github.com/':

$ git fetch github
fetching....

So it looks like the bug is fixed in Git1.7.8 (Release Notes)

VonC

The only missing piece, in order to push to an https GitHub address, is your ~/.netrc file (or %HOME%/_netrc file on Windows) with your GitHub credentials in it.

See "Git - How to use .netrc file on windows to save user and password".

machine github.com
login <login_github>
password <password_github>

See other settings at "Syncing with github".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!