How do I update the password for Git?

后端 未结 26 1899
一整个雨季
一整个雨季 2020-12-02 03:12

I\'m using BitBucket with Xcode and Git for version control, and recently I changed all of my passwords (thanks Adobe!).

Unsurprisingly, I\'m no longer able

相关标签:
26条回答
  • 2020-12-02 04:07

    In my Windows machine, I tried the solution of @nzrytmn i.e., Control Panel>Search Credentials>Select "ManageCredentials">modified new credentials under git option category corresponding to my username. And then,

    Deleted current password:

    git config --global --unset user.password
    

    Added new password:

    git config --global --add user.password "new_password"
    

    And It worked for me.

    0 讨论(0)
  • 2020-12-02 04:07

    In this article, they explain it in a very easy way but basically, we just need to execute a git remote set-url origin "https://<yourUserName>@bitbucket.org/<yourRepo>" and next time you do a git pull or a git push you will have to put your password.

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