Setting up GitHub

Kent C. Dodds
InstructorKent C. Dodds
Share this video with your friends

Social Share Links

Send Tweet
Published 9 years ago
Updated 5 years ago

In this lesson, you'll learn how to set up a GitHub account, create a new GitHub repository, and connect your local project with that new repository so you have a place to store and collaborate on your library code.

[00:00] The first thing that we're going to want to do is create a GitHub repo for this library. We'll go to our browser and go to If you don't have an account, you can sign up here.

[00:11] I do have an account, so I'll just sign in. Then, we'll go ahead and create a new repository. We'll call it "Star Wars Names," just the name of our library, and we'll say, "git-random Star Wars Name." We'll go ahead and create the repository.

[00:33] I'm just going to go ahead and copy this to the clipboard, and we'll paste it in. It'll run several of those commands and, then, we're ready to push.

[00:42] Just to explain what this actually does is it creates a new file called "," and adds "Star Wars Names" to the top. Then, it initializes the Git repository locally. We add the .readme that we just created.

[00:57] We commit with the message "first commit." We add the remote origin so, this repository. Then, we push it to master setting our upstream.

[01:07] If I refresh the browser, now, now we have our Star Wars Names and we have the .readme. We're all ready to go with a GitHub repository, and this is where we're going to be hosting our code and pushing our code.

[01:19] In review, you need to create a GitHub user. You create a new repository. Then, you follow the instructions to push your code to that repository. That's how you get started with GitHub.

~ 5 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today