Can't push after Git Update

前端 未结 4 1557
梦毁少年i
梦毁少年i 2021-01-05 15:34

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 Pas

相关标签:
4条回答
  • 2021-01-05 16:03

    try:

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

    obviously for username put your username

    password put your password

    0 讨论(0)
  • 2021-01-05 16:05

    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.

    0 讨论(0)
  • 2021-01-05 16:05

    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
    
    0 讨论(0)
  • 2021-01-05 16:08

    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

    0 讨论(0)
提交回复
热议问题