Pycharm GitHub 'Push failed: fatal: Authentication failed'

前端 未结 7 1704
臣服心动
臣服心动 2021-01-04 23:19

Every time I try to push a repository in GitHub with Pycharm the it fails.

Push failed: fatal: Authentication failed for \'https://github.com/(my github repo         


        
7条回答
  •  天命终不由人
    2021-01-04 23:53

    If your username or password has special characters, you can replace it with the Percent-encoding for theses characters. for example, if your password is "test@2010", you will write it as "test%402010" and the config command will be like this git config remote.origin.url https://{username}:test%402010@github.com/{repo_username}/{repo_name}.git

提交回复
热议问题