Now, let's connect the directory you made to GitHub so we can share it with others.
- Go to GitHub in your browser and click the plus sign in the upper right hand corner to create a new remote repo.
- Give it the same name as your local repo.
- Select Public
- Do not select "Initialize this repository with a README" since you will be importing an existing directory.
- Click Create repository
- You should end up inside your newly created GitPractice repo. If not, navigate to your new remote repo in the browser, and copy its HTTPS: URL (highlighted in light blue).
On your command line, type git remote add origin [URL of your remote repo]
This will link the local and remote repo.
To confirm, type git remote -v
and hit enter.
You should see something like
Origin https://github.com/jojokarlin/Git_DRI_Jan_2017 (fetch)
Origin https://github.com/jojokarlin/Git_DRI_Jan_2017 (push)
If you're getting stuck, setting up a remote repo in GitHub is a good resource.
Glossary ~ ~ ~ Helpful commands