简体   繁体   English

Nitrous.io到github连接

[英]Nitrous.io to github connecting

I am using Nitrous.io for Ruby on Rails development and am trying to connect with GitHub. 我正在使用Nitrous.io进行Ruby on Rails开发,并尝试与GitHub连接。 I am running into this error when I connect to GitHub. 连接到GitHub时遇到此错误。 Does anyone know what the solution to this is? 有谁知道解决方案是什么? It happens immediately once clicked "Connect to Github". 单击“连接到Github”后,它会立即发生。 I did try it and then canceled the first time because I entered the wrong information for my github login. 我确实尝试过,然后第一次取消,因为我为github登录名输入了错误的信息。 Now whenever I try to go to connect to Git, it doesn't work. 现在,每当我尝试连接到Git时,它都不起作用。 This is all that renders in the browser... 这就是浏览器中呈现的所有内容...

{"error":"state_mismatch","error_description":"state provided does not match cookie state"} {“错误”:“ state_mismatch”,“ error_description”:“提供的状态与Cookie状态不匹配”}

There is currently an issue connecting to Github when you login through https://www.nitrous.io . 通过https://www.nitrous.io登录时,当前存在与Github连接的问题。

Try logging in through the domain https://pro.nitrous.io/ , and from there you can connect to Github . 尝试通过https://pro.nitrous.io/域登录,然后从那里可以连接到Github

I guess you added the wrong remote. 我想您添加了错误的遥控器。 You have to delete and set it correctly: git remote remove origin . 您必须删除并正确设置它: git remote remove origin What info did you improperly set? 您未正确设置哪些信息?

These are the steps for Nitrous.io: 这些是Nitrous.io的步骤:

First add SSH keys: https://community.nitrous.io/docs/connect-to-github . 首先添加SSH密钥: https : //community.nitrous.io/docs/connect-to-github Then create a repo on your github account ( https://github.com/new ). 然后在您的github帐户( https://github.com/new )上创建一个仓库。 Then run git init , then 然后运行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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM