Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.94 KB

github.md

File metadata and controls

45 lines (26 loc) · 1.94 KB

<<< Previous | Next >>>

Connect to Your Remote Repo

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.

alt text

  • 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

alt text

  • 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).

alt text

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.


<<< Previous | Next >>>

Glossary ~ ~ ~ Helpful commands