How do I update the password for Git?

后端 未结 26 2037
一整个雨季
一整个雨季 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 03:42

    you can change password through command line in 2 places, following would edit credentials to connect the repo

    git config --edit 
    

    The credentials also can be changed at global using global parameter like below

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

    or set the credentials helper with

    git config --global credential.helper wincred
    

    but if you have repo level credentials set the use the first command

    git config --edit
    

提交回复
热议问题