Nitrous.io to github connecting

157 Views Asked by At

I am using Nitrous.io for Ruby on Rails development and am trying to connect with GitHub. I am running into this error when I connect to GitHub. Does anyone know what the solution to this is? It happens immediately once clicked "Connect to Github". I did try it and then canceled the first time because I entered the wrong information for my github login. Now whenever I try to go to connect to Git, it doesn't work. This is all that renders in the browser...

{"error":"state_mismatch","error_description":"state provided does not match cookie state"}

2

There are 2 best solutions below

1
Greg On BEST ANSWER

There is currently an issue connecting to Github when you login through https://www.nitrous.io.

Try logging in through the domain https://pro.nitrous.io/, and from there you can connect to Github.

0
Cherenkov On

I guess you added the wrong remote. You have to delete and set it correctly: git remote remove origin. What info did you improperly set?

These are the steps for Nitrous.io:

First add SSH keys: https://community.nitrous.io/docs/connect-to-github. Then create a repo on your github account (https://github.com/new). Then run git init, then

$ 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