Create a New Remote Repository on GitHub & Bitbucket

Git Tips & Commands

Learn the step-by-step process of creating a new repository on Github and Bitbucket, two widely used web-based hosting services for version control. Plus, discover a range of coding courses and bootcamps available in New York City for students looking to develop their skills in web development, python, data science, and web design.

Key Insights

  • To start a new repository on Github, you first need to login or create an account. From the navbar, click the '+' button and choose 'New repository'.
  • When creating a new repository on Github, you can choose the name, decide if it's public or private, and choose whether or not to initialize the repository with a README.
  • Creating a new repository on Bitbucket follows a similar process to Github. You first login or create an account, then from the navbar, click the '+' button and choose 'Repository'.
  • On Bitbucket, you can also name your repository, decide if it's public or private, and choose whether or not to include a README when setting up.
  • After creating a new repository on both Github and Bitbucket, you will see commands that allow you to push to this remote repository.
  • A variety of coding courses and bootcamps are available in NYC for students of all levels interested in web development, python, data science, and web design.

Git Hygiene Checklist

  • Use the imperative mood: 'Add login form' not 'Added login form'.

  • Avoid divergent histories that need merging.

  • Never commit build artifacts, secrets, or local config.

  • One branch = one PR = one focused change.

Git remote repository workflow - step 1

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

GitHub remote repository page showing repository URL and clone options

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."
Full-Stack Web Development Certificate: Live & Hands-on, In NYC or Online, 0% Financing, 1-on-1 Mentoring, Free Retake, Job Prep. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

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

Git remote repository workflow - step 3

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:

Topics

Learn more in these courses

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