How do I update the password for Git?

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

    If you are using github and have enabled 2 factor authentication, you need to enter a Personal access token instead of your password

    First reset your password:

    git config --global --unset user.password

    Then, log to your github account, on the right hand corner, click on Settings, then Developer Settings. Generate a Personal access token. Copy it.

    git push

    The terminal will prompt you for your username: enter your email address.

    At the password prompt, enter the personal access token instead.

提交回复
热议问题