Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.91 KB

github.md

File metadata and controls

40 lines (25 loc) · 1.91 KB

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.


<<< Initialize Git - Git add, commit, and push >>>
Glossary ~ ~ ~ Helpful commands