Create a remote github repo from your Terminal

If you create a folder on your Desktop with:


$ mkdir starwars

Then initialize a local git repo by first changing into that directory:


$ cd starwars

And then initializing a local git repo with:


$ git init

Then you normally would have to got to github, login and create a remote repo manually.

But if you download this free github utility you can do it much faster with just this one line:


$ hub create starwars

And that's it. You know have your remote github so you can push your local changes to your new github remote repo. Easy Peasy.

note: I recommend installing Homebrew so that you can easily install the github utility with this one line:

$ brew install hub

Leave a Reply

Your email address will not be published. Required fields are marked *