I'm on Ubuntu 12.04 LTS and just upgraded my git
from 1.7
-something to version 1.8.4
. The problem is when I want to push to a GitHub repository, I get the following message and the push doesn't happen:
/caniuse $ git push
Username for 'https://github.com': rafalchmiel
Password for 'https://rafalchmiel@github.com':
remote: Anonymous access to rafalchmiel/caniuse.git denied.
fatal: Authentication failed for 'https://github.com/rafalchmiel/caniuse.git/'
This is what I get from git config --list
:
user.name=Rafal Chmiel
user.email=rafalmarekchmiel@gmail.com
alias.undo-commit=reset --soft HEAD^
color.ui=true
push.default=matching
credential.helper=cache --timeout=86400
github.user=rafalchmiel
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/rafalchmiel/caniuse.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
And these are my remotes (git remote -v
):
origin https://github.com/rafalchmiel/caniuse.git (fetch)
origin https://github.com/rafalchmiel/caniuse.git (push)
I tried setting up the SSH keys again (although this is done through HTTP) and have search for options. No luck. Any ideas on what else I could do?
The issues was not resolved however in the end I decided to go with SSH instead of HTTPS. SSH caused no problems at all (and there's no need to type in the username and pass)!