Can't push after Git Update

*爱你&永不变心* 提交于 2019-11-30 05:17:32

问题


I've just updated from Git 1.7.11 to 1.8.5

Now when trying to push to bitbucket I'm getting the following message:

fatal: could not read Password for 'https://xxxxxx@bitbucket.org': No such file or directory

Where xxxxx is my username.

Pushing on other machines which are still on 1.7 is working ok.

What would cause this and how can I fix it?


回答1:


It is a bug in 1.8.5.2 msysgit (1.8.5.2-preview20131230). See the report and a discussion with a way to workaround




回答2:


try:

git remote add origin https://username:password@bitbucket.org/repo.git

obviously for username put your username

password put your password




回答3:


Not necessarily the best answer - but in the end I resolved this by removing/uninstalling git altogether and then reinstalling.

I have no idea why I needed to do this. At present I've reinstalled 1.7. I'll try an update again sometime and update this post.




回答4:


Just taking a blind shot here, but are you able to re-add the remote without the username in the URL? I know in the old Git version, you needed to specify the username and password inline, but in the newer versions, it prompts you for the username and password if required.

git remote add origin https://bitbucket.org/repo.git


来源:https://stackoverflow.com/questions/20882088/cant-push-after-git-update

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