Cannot push to github repo

后端 未结 7 1303
生来不讨喜
生来不讨喜 2020-12-28 15:46

My repo: https://shadyabhi@github.com/shadyabhi/learnajax.git

shadyabhi@archlinux-N210 ~/github/learnajax $ cat .git/config 
[core]
    repositoryformatversi         


        
7条回答
  •  天涯浪人
    2020-12-28 16:00

    I have hit the same problem just now. Apparently, when you use git in command line, it wants you to enter the access token instead of password. This is really weird, but it works.

    $ git push origin HEAD
    Username for 'https://github.com':        <--- your username here
    Password for 'https://t7ko@github.com':   <--- access token here O_O
    

    PS: This is the instruction on creating token: https://help.github.com/articles/creating-an-access-token-for-command-line-use

提交回复
热议问题