繁体   English   中英

Nitrous.io到github连接

[英]Nitrous.io to github connecting

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

{“错误”:“ state_mismatch”,“ error_description”:“提供的状态与Cookie状态不匹配”}

通过https://www.nitrous.io登录时,当前存在与Github连接的问题。

尝试通过https://pro.nitrous.io/域登录,然后从那里可以连接到Github

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

这些是Nitrous.io的步骤:

首先添加SSH密钥: https : //community.nitrous.io/docs/connect-to-github 然后在您的github帐户( https://github.com/new )上创建一个仓库。 然后运行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