Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
1. Initializing a new git repo with Github's hub CLI #1
Hub is new to me. I installed it using Homebrew. I recommend that you install it and create your project folder before you start this collection.
brew install hub hub version git version 2.25.0 hub version 2.14.1 # ← it works! # indicate that you prefer HTTPS to SSH git clone URLs git config --global hub.protocol https
Create the local repository
cd into your empty project folder mine is called serverless-todo
The first thing Chris instructs us to do is initialize the git repo.
This command creates a
You can preview the contents of the file with
Add the README to your local git repo
Chris uses an alias to commit. I'd never seen these before and I didn't realize that they were already enabled on my zsh. If you use zsh, the git plugin gets you a whole list of useful aliases. I found this article that shows you how to set them up in bash.
Using hub to create the repo on GitHub
Chris already has hub installed and the alias set up. I had to figure out how to get to this point on my computer.
There's a command you can use to get the instructions.