Git authentication failed-Git push results in “Authentication Failed”
In order to update the origin for your repository if set to https:
$ git remote -v
$ git remote remove origin
$ git remote add origin git@github.com:user/repo.git