How do I update the password for Git?

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

    In windows 10 at mentioned above by @Imran Javed you can find Generic Credentials at :

    Control Panel\All Control Panel Items\Credential Manager --> Windows Credentials

    for your git server and then you can update password by clicking edit button.

    0 讨论(0)
  • 2020-12-02 03:59

    In Windows 10 with Git

    Remove/update related Credentials stored in Windows Credentials in >>Control Panel\All Control Panel Items\Credential Manager

    0 讨论(0)
  • 2020-12-02 03:59

    I would try to delete my account in Keychain Access and then run git clone again. Git will ask me for a new password.

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

    Following steps can resolve the issue .....

    1. Go to the folder ~/Library/Application Support/SourceTree
    2. Delete the file {Username}@STAuth-bitbucket.org
    3. Restart Sourcetree
    4. Try to fetch, password filed appear, give your new password
    5. Also can run "git fetch" command in terminal and need to type password
    6. Done
    0 讨论(0)
  • 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.

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

    I was pushing into the repository for the first time. So there was no HEAD defined.

    The easiest way would be to:

    git push -u origin master
    

    It will then prompt for the password, and once you enter that it will be saved automatically, and you will be able to push.

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