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

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

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

    楼主在有两步验证的情况下,肯定不能用原密码push。这跟更新goagent服务端时是一回事
    summic
    summic
    OP
    Nov 22, 2013
    4
    感谢两位,用 SSH Key 解决了
    pright
    pright
    Nov 22, 2013
    5
    账户设置那里有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
    weakish
    Nov 23, 2013
    6
    @iislong @terry 說的是和「Application passwords 差不多」的 Access token
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4667 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 06:33 · PVG 14:33 · LAX 22:33 · JFK 01:33
    ♥ Do have faith in what you're doing.