- Go to GitHub.com and click the + icon from the top right hand corner of the page
- Click
New repository
- Name your repository using snake_case (i.e., my_app_name)
- Write a brief description of the app
- Leave the repo set to
public
- Click
Create repository
- Copy the https url (or ssh depending on your local setup) from the input box
- Navigate to your local app in your terminal
- Follow these steps to setup your local repo:
- git init (skip this step if you've already git init'd)
- git status
- git add <file name or . for all files>
- git status
- git commit -m "first commit"
- git remote add origin <paste git url from step 7>
- git push -u origin master
- If you already have a remote set, but want to change the url to a new repo:
- git remote set-url origin <paste git url from step 7>