git - Can't push to github origin master anymore -
i not able push origin anymore in github. yesterday made mistake when introducing username , every time try git push -u origin master following message:
remote: invalid username or password. fatal: authentication failed https://github.com/my_user_name/my_repo.git/
i not prompt username or password anymore. have tried creating new oauth token , new ssh key nothing seems working.
any appreciated.
edits: .git/config file repo push says:
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/eduardopoleo/tesing1.git fetch = +refs/heads/*:refs/remotes/origin/* [credential] helper = cache [options]
i got in contact guys github , able me solve issue. here paste mail:
if you're using ssh remote shouldn't asked username or password. can ensure you're set use ssh in local repository command this:
git remote set-url origin git@github.com:eduardopoleo/test1.git
you try exiting credential cache, should cause forget username:
git credential-cache exit
the first suggestion 1 worked me.
Comments
Post a Comment