Github Authentication Failed - … GitHub does not provide shell access

后端 未结 4 707
悲&欢浪女
悲&欢浪女 2020-12-23 22:41
$ git remote add origin git@github.com:lut/EvolutionApp.git
fatal: remote origin already exists.

$ git push -u origin master
fatal: \'EvolutionApp\' does not appear         


        
相关标签:
4条回答
  • 2020-12-23 23:24

    You might have to add the remote again. That error message happens when Git doesn't know where to push to.

    Use git remote -v check if the remote exists, if not, add it.

    Even then if it doesn't work try removing the GIT_SSH environment variable, this maybe causing the problem.

    0 讨论(0)
  • 2020-12-23 23:32

    check if you are using https as remote url instead of ssh. I set my remote url to http and encountered this issue. After resetting the url to ssh protocol the problem is gone.

    0 讨论(0)
  • 2020-12-23 23:38

    This can happen if you have an incomplete remote entry in your global config.

    Run git config -e --system, comment out any [remote entries, re-add the remote, and try again.

    0 讨论(0)
  • 2020-12-23 23:39

    Try and redefine the ssh url for remote origin:

    git remote set-url origin git@github.com:lut/EvolutionApp.git
    

    And try again

    0 讨论(0)
提交回复
热议问题