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
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
Change the directory and clone the project again with a new account?
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
If it is a Mac, it will be recorded in the Mac keychain
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!