search

Home  >  Q&A  >  body text

How to delete git account

Use SourceTree client, https method to clone the project. When filling in the account password, I chose to remember the password.

Now that I want to use a new account, I need to delete the old git account (the old account was kicked out of the project team), because the system has always defaulted to using the old account to connect to git, and it keeps reporting insufficient permissions.

I have tried reinstalling git and SourceTree clients, but the old account is still not cleared.

Everything I found on the Internet uses the ssh method to switch between multiple accounts, but I use the https method, and there is no ./ssh folder. So the old account will naturally not be in the ./ssh folder.

The operating system is win10.

I also tried deleting all the AppDataLocalAtlassianSourceTree folders, but it didn’t work!

The current temporary solution is to bring the username and password when cloning the warehouse. The disadvantage is that the password is displayed in plain text

http://yourname:password@git.oschina.net/name/project.git

我想大声告诉你我想大声告诉你2804 days ago1577

reply all(5)I'll reply

  • ringa_lee

    ringa_lee2017-05-02 09:35:03

    win10 is saved in user credentials
    Control Panel » User Accounts » Manage your credentials
    Select [Windows Credentials]
    The user information saved by git is in the general credentials list

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:35:03

    Change the directory and clone the project again with a new account?

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:35:03

    I have never used SourceTree, but this client should have saved the password. Baidu found this, you can try it:

    http://m.blog.csdn.net/article/details?id=47007471

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:35:03

    If it is a Mac, it will be recorded in the Mac keychain

    reply
    0
  • 黄舟

    黄舟2017-05-02 09:35:03

    My computer is also win10, and it is recorded in the credential manager!
    Control Panel All Control Panel Items Credential Manager
    The Windows credentials below can be used to find the username and password recorded by sourceTree, just delete it!

    reply
    0
  • Cancelreply