K
K
Karetski2015-09-22 01:34:47
git
Karetski, 2015-09-22 01:34:47

How to fix git push?

When trying to push a repository to github, an error appears:

remote: Permission to Karetski/univercube.git denied to PavelMetsko.
fatal: unable to access ' https://github.com/Karetski/univercube.git/ ': The requested URL returned error: 403

Which is strange, because in git config the username is completely different:
push.default=simple
core.autocrlf=true
[email protected]
user.name=Karetski
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core .precomposeunicode=true
remote.origin.url= https://github.com/Karetski/univercube.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

What is the problem? I haven't been able to fix it for a very long time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Karetski, 2015-09-22
@Karetski

If someone is suddenly interested, I found a solution to the problem. Rather, I was prompted on stackoverflow. It's all about Keychain Access on OS X. Original answer:

Git doesn't provide a username (nor password). When using https as your protocol, it's a "credential helper" that provides these. See help.github.com/articles/caching-your-github-password-in-git for details. (Using ssh, git still doesn't provide a user name or password either, but the setup seems a bit more straightforward to me with ssh.)
– torek

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question