Answer the question
In order to leave comments, you need to log in
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
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
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question