• 请不要在回答技术问题时复制粘贴 AI 生成的内容
UtopiaCHN
V2EX  ›  程序员

执行 git push 时提示 Invalid username or password

  •  
  •   UtopiaCHN · Nov 25, 2015 · 3605 views
    This topic created in 3909 days ago, the information mentioned may be changed or developed.

    执行 git push, 然后输入用户名和密码时报错,错误信息:
    remote: Invalid username or password.
    fatal: Authentication failed for 'https://github.com/UtopiaCHN/Zen.git/'

    我有开启两步验证。

    4 replies    2015-11-25 21:07:20 +08:00
    Kirscheis
        1
    Kirscheis  
       Nov 25, 2015 via Android   ❤️ 1
    开了两步验证的要用一个 token 授权,不能用账号密码登录。
    UtopiaCHN
        2
    UtopiaCHN  
    OP
       Nov 25, 2015
    @Kirscheis 怎么获取授权呀
    blueset
        3
    blueset  
       Nov 25, 2015   ❤️ 1
    GitHub 网页 > account settings > personal tokens
    UtopiaCHN
        4
    UtopiaCHN  
    OP
       Nov 25, 2015
    @blueset 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   926 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 19:31 · PVG 03:31 · LAX 12:31 · JFK 15:31
    ♥ Do have faith in what you're doing.