How do I update the password for Git?

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

    For Mac

    If you have multiple remote repositories (Github, Bitbucket, Job, etc.)

    1) run in the project directory

    git config --unset user.password
    

    2) run remote git command (ie. git push or git pull)

    Git will prompt you to reenter your user.name and user.password for this repository

    Or you can do it globally if you have only one remote repository

    git config --global --unset user.password
    

提交回复
热议问题