[英]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.