【问题标题】:Nitrous.io to github connectingNitrous.io 到 github 连接
【发布时间】:2015-08-25 21:14:01
【问题描述】:

我正在使用 Nitrous.io 进行 Ruby on Rails 开发,并尝试连接 GitHub。连接到 GitHub 时遇到此错误。有谁知道解决这个问题的方法是什么?一旦单击“连接到 Github”,它就会立即发生。我确实尝试过,然后第一次取消,因为我输入了错误的 github 登录信息。现在,每当我尝试连接到 Git 时,它都不起作用。这就是浏览器中呈现的所有内容......

{"error":"state_mismatch","error_description":"提供的状态与 cookie 状态不匹配"}

【问题讨论】:

    标签: ruby-on-rails git nitrousio


    【解决方案1】:

    当您通过https://www.nitrous.io 登录时,当前连接到 Github 时出现问题。

    尝试通过域https://pro.nitrous.io/ 登录,然后您可以从那里connect to Github

    【讨论】:

    • 我不知道它是如何工作的,但它对我有用。现在要弄清楚如何实际使用我的存储库,哈哈。非常感谢!
    【解决方案2】:

    我猜你添加了错误的遥控器。您必须删除并正确设置:git remote remove origin。哪些信息设置不当?

    这些是 Nitrous.io 的步骤:

    首先添加 SSH 密钥:https://community.nitrous.io/docs/connect-to-github。然后在您的 github 帐户 (https://github.com/new) 上创建一个 repo。然后运行git init,然后

    $ git remote add origin https://github.com/user/repo.git
    # Set a new remote: your remote. 
    
    $ git remote -v
    # Verify new remote
    # origin  https://github.com/user/repo.git (fetch)
    # origin  https://github.com/user/repo.git (push)
    
    $ git add .
    $ git commit -m "initial commit"
    $ git push origin master
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-23
      • 2014-07-25
      • 2014-07-06
      • 2018-12-11
      • 1970-01-01
      • 2015-06-02
      • 2018-10-05
      相关资源
      最近更新 更多