---
layout: default
title: Create A Repo
description: Create the place where your commits will be stored
categories: bootcamp
main_category: bootcamp
---
If you’ve found yourself on this page, we’re assuming you’re brand new to Git and GitHub. This guide will walk you through creating your first repo, creating a README file, and making your first commit.
##First: Create A Repo
Every time you push your commits to GitHub, they get stored in a repository (a.k.a. “repo”)
1. Create a new repo
Click “New Repository.
Fill out the information on this page. When you’re done, click “Create Repository.”
Congratulations! You have successfully created your first repo!
##Next: Create a README for your repo.
While a README isn’t a required part of a GitHub repo, it is a good idea to have one. READMEs are a great place to describe your project or add some documentation such as how to install or use your project.
1. Create the README file
In the prompt, type the following code:
$ mkdir ~/Hello-WorldCreates a directory for your project called "Hello-World" in your user directory $ cd ~/Hello-WorldChanges the current working directory to your newly created directory $ git initSets up the necessary Git files Initialized empty Git repository in /Users/your_user_directory/Hello-World/.git/ $ touch READMECreates a file called "README" in your Hello-World directoryOpen the new README file found in your Hello-World directory in a text editor and add the text “Hello World!.” When you are finished, save and close the file. 2. Commit your README Now that you have your README set up, it's time to commit it. A commit is essentially a snapshot of all the files in your project at a particular point in time. In the prompt, type the following code:
$ git add READMEStages your README file, adding it to the list of files to be committed $ git commit -m 'first commit'Commits your files, adding the message "first commit"The code above executes actions locally, meaning you still haven’t done anything on GitHub yet. To connect your local repository to your GitHub account, you will need to set a remote for your repo and push your commits to it:
$ git remote add origin git@github.com:username/Hello-World.gitSets the origin for the Hello-World repo $ git push origin masterSends your commit to GitHubNow if you look at your repository on GitHub, you will see your README has been added to it.
##Lastly: Celebrate
Congratulations! You have now created a repository on GitHub, created a README, committed it, and pushed it to GitHub. What do you want to do next?