How do I update the password for Git?

后端 未结 26 2023
一整个雨季
一整个雨季 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

    To fix this on macOS, you can use

    git config --global credential.helper osxkeychain
    

    A username and password prompt will appear with your next Git action (pull, clone, push, etc.).

    For Windows, it's the same command with a different argument:

    git config --global credential.helper wincred
    

提交回复
热议问题