Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There is an <a href="https://github.com/defunkt/github-gem" rel="noreferrer">official github gem</a> which, I think, does this. I'll try to add more information as I learn, but I'm only just now discovering this gem, so I don't know much yet.</p> <p>UPDATE: After setting my API key, I am able to create a new repo on github via the <code>create</code> command, however I am not able to use the <code>create-from-local</code> command, which is supposed to take the current local repo and make a corresponding remote out on github.</p> <pre><code>$ gh create-from-local =&gt; error creating repository </code></pre> <p>If anyone has some insight on this, I'd love to know what I'm doing wrong. There's already an <a href="https://github.com/defunkt/github-gem/issuesearch?state=open&amp;q=create#issue/30" rel="noreferrer">issue filed</a>.</p> <p>UPDATE: I did eventually get this to work. I'm not exactly sure how to re-produce the issue, but I just started from scratch (deleted the .git folder)</p> <pre><code>git init git add .emacs git commit -a -m "adding emacs" </code></pre> <p>Now this line will create the remote repo and even push to it, but unfortunately I don't think I can specify the name of the repo I'd like. I wanted it to be called "dotfiles" out on github, but the gh gem just used the name of the current folder, which was "jason" since I was in my home folder. (I added <a href="https://github.com/defunkt/github-gem/issues/#issue/50" rel="noreferrer">a ticket</a> asking for the desired behavior)</p> <pre><code>gh create-from-local </code></pre> <p>This command, on the other hand, does accept an argument to specify the name of the remote repo, but it's intended for starting a new project from scratch, i.e. after you call this command, you get a new remote repo that's tracking a local repo in a newly-created subfolder relative to your current position, both with the name specified as the argument.</p> <pre><code>gh create dotfiles </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload