V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
summic
V2EX  ›  git

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

  •  
  •   summic · 2013-11-22 01:27:53 +08:00 · 6589 次点击
    这是一个创建于 3801 天前的主题,其中的信息可能已经有所发展或是发生改变。
    提示密码错误,关闭两步验证之后就可以了
    有人遇到么?
    6 条回复    1970-01-01 08:00:00 +08:00
    jetbillwin
        1
    jetbillwin  
       2013-11-22 02:54:30 +08:00   ❤️ 2
    可以用SSH Key
    terry
        2
    terry  
       2013-11-22 08:05:40 +08:00   ❤️ 1
    HTTPS push 的话要设置一个 Access token 和 Google 账户 Application passwords 差不多。
    iislong
        3
    iislong  
       2013-11-22 08:35:58 +08:00   ❤️ 1
    @terry 好像没有Application passwords,我开启时没注意到,账号也只是作为star之用

    楼主在有两步验证的情况下,肯定不能用原密码push。这跟更新goagent服务端时是一回事
    summic
        4
    summic  
    OP
       2013-11-22 08:59:51 +08:00
    感谢两位,用 SSH Key 解决了
    pright
        5
    pright  
       2013-11-22 12:04:53 +08:00
    账户设置那里有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  
       2013-11-23 09:52:14 +08:00
    @iislong @terry 說的是和「Application passwords 差不多」的 Access token
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3623 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:28 · PVG 18:28 · LAX 03:28 · JFK 06:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.