Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create doesn't work without insane genius #12

Open
kjvarga opened this issue Dec 10, 2009 · 5 comments
Open

create doesn't work without insane genius #12

kjvarga opened this issue Dec 10, 2009 · 5 comments
Labels

Comments

@kjvarga
Copy link

kjvarga commented Dec 10, 2009

I've never been able to get the 'gh create' calls to work. I tried all sorts of combinations and trying to specify the repo in different ways. Nada. So I decided to write up an issue...then I decided I'd better just look at the source. And there is, some mysterious github token! I didn't have one. So I googled and discovered that I do have one and I need to set that in my global git config.

Could you please add a line saying that you need to do this step to the install?! Unless I'm missing something how would any normal person know to do this?

Cheers,
Karl

PS A check that the token isn't empty would be good in the 'create' calls..or wherever it's needed. Perhaps that would even be enough.
'You haven't configured your GitHub API key! Please go to http://github.com/[github_user] and blah...'

@barryk
Copy link

barryk commented Jan 23, 2010

@igorsantos07
Copy link

First time you run "create" it asks for your user and token, and explains where to get the token... So I think this thread could be closed, isn't it?

@mattwynne
Copy link

I've hit this today, and it seems like support for the API token is being removed.

Is there an alternative right now?

@lorensr
Copy link

lorensr commented Jan 6, 2015

I gave create an API token with all possible access rights, but it gives me the error:

gh create new-repo
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

There are no more access rights, and of course the repository doesn't exist – I'm trying to create it.

@lorensr
Copy link

lorensr commented Jan 6, 2015

Also:

$ cd new-repo
$ git init .
$ gh create-from-local new-repo
 (JSON::ParserError)gems/2.1.0/gems/json_pure-1.5.5/lib/json/common.rb:148:in `parse': 757: unexpected token at '<html>
<head><title>410 Gone</title></head>
<body bgcolor="white">
<center><h1>410 Gone</h1></center>
<hr><center>nginx</center>
</body>
</html>'
    from /usr/local/lib/ruby/gems/2.1.0/gems/json_pure-1.5.5/lib/json/common.rb:148:in `parse'
    from /usr/local/lib/ruby/gems/2.1.0/gems/github-0.7.2/lib/commands/commands.rb:260:in `block in load'
    from /usr/local/lib/ruby/gems/2.1.0/gems/github-0.7.2/lib/github/command.rb:25:in `call'
    from /usr/local/lib/ruby/gems/2.1.0/gems/github-0.7.2/lib/github.rb:76:in `invoke'
    from /usr/local/lib/ruby/gems/2.1.0/gems/github-0.7.2/lib/github.rb:70:in `activate'
    from /usr/local/lib/ruby/gems/2.1.0/gems/github-0.7.2/bin/gh:8:in `<top (required)>'
    from /usr/local/bin/gh:23:in `load'
    from /usr/local/bin/gh:23:in `<main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants