Create a New Remote Repository on GitHub & Bitbucket

Git Tips & Commands

Storing a copy of your Git repo with an online host such as GitHub or Bitbucket gives you a centrally located place where you can upload your changes and download changes from others, letting you collaborate with other developers.

Create a New Repo on Github

1. Go to github.com and log in or create a new account (which you can do for free).
2. In the navbar at the top, click the + button and choose New repository. This should take you to github.com/new

3. Do the following:

  • Type in a Repository name.
  • Anyone can view public repos, so if you don't want people to see your work, check on Private.
  • If you already have a local repo that you'll want to push to this remote repo, do NOT check on "Initialize this repository with a README."

4. Click Create repository, and on the next screen, you'll see commands to push to this remote repo (which we cover in the next exercise). Keep this webpage open.

Create a New Repo on Bitbucket

1. Go to bitbucket.org and log in or create a new account (which you can do for free).
2. In the navbar on the left, click the + button and then under Create click Repository. This should take you to bitbucket.org/repo/create

3. Do the following:

  • Type in a Repository name.
  • Anyone can view public repos, so if you don't want people to see your work, keep This is a private repository checked on.
  • If you already have a local repo that you'll want to push to this remote repo, leave "Include a README" set to No.

4. Click Create repository, and on the next screen, you'll see commands to push to this remote repo (which we cover in the next exercise). Keep this webpage open.

Grow Your Skills

We offer a full suite of coding courses for students of all levels. Learn through real-world projects from expert instructors. Check out our coding bootcamps and classes now:

How to Learn Git

Master Git with hands-on training. Git is a free, open-source version control system that allows developers to track the changes they make to code.

Yelp Facebook LinkedIn YouTube Twitter Instagram