W
W
WebDeveloper20162016-11-12 20:59:02
git
WebDeveloper2016, 2016-11-12 20:59:02

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

Which is absolutely not real... It just can't be. I do not understand what is going on. This repository is just not related to username1 at all. And yet somehow sideways swears at him. He should not even know about him at all ... Well, what should I do ??? Please help me. I really need to use git.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2016-11-12
@miraage

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 question

Ask a Question

731 491 924 answers to any question