Answer the question
In order to leave comments, you need to log in
How to "clean out" the old user from SourceTree?
It so happened that I used to use one github account, now I need another one. During the change, a huge number of problems arose. But the bottom line is that I tried as much as possible to clean out the old user from all the SourceTree settings (let's call him username1), and add a new one (and username2). Now I started a repository on a new account (username2) (let's call it reposname), got it successfully in SourceTree, added files and try to push from the same account (username2). When pushing, this error occurs:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
remote: Permission to username1/reposname.git denied to username2.
fatal: unable to access 'https://github.com/username1/reposname.git/': The requested URL returned error: 403
Pushing to https://github.com/username1/reposname.git
Answer the question
In order to leave comments, you need to log in
hellowz.
So git wrote to you, saying that this user (username2) does not have write access to the repository.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question