git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
summic
V2EX  ›  git

为什么开了github两步验证之后,无法push代码了

  •  
  •   summic · Nov 22, 2013 · 7261 views
    This topic created in 4588 days ago, the information mentioned may be changed or developed.
    提示密码错误,关闭两步验证之后就可以了
    有人遇到么?
    6 replies    1970-01-01 08:00:00 +08:00
    jetbillwin
        1
    jetbillwin  
       Nov 22, 2013   ❤️ 2
    可以用SSH Key
    terry
        2
    terry  
       Nov 22, 2013   ❤️ 1
    HTTPS push 的话要设置一个 Access token 和 Google 账户 Application passwords 差不多。
    iislong
        3
    iislong  
       Nov 22, 2013   ❤️ 1
    @terry 好像没有Application passwords,我开启时没注意到,账号也只是作为star之用

    楼主在有两步验证的情况下,肯定不能用原密码push。这跟更新goagent服务端时是一回事
    summic
        4
    summic  
    OP
       Nov 22, 2013
    感谢两位,用 SSH Key 解决了
    pright
        5
    pright  
       Nov 22, 2013
    账户设置那里有Personal Access Tokens设置的。

    Personal Access Tokens function like ordinary OAuth access tokens. They can be used instead of a password for git over HTTPS, or can be used to authenticate to the API over Basic Authentication.
    weakish
        6
    weakish  
       Nov 23, 2013
    @iislong @terry 說的是和「Application passwords 差不多」的 Access token
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1028 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 23:11 · PVG 07:11 · LAX 16:11 · JFK 19:11
    ♥ Do have faith in what you're doing.