How To Connect Projects to Github

Gabbie De Los Angeles
2 min readMay 17, 2023

--

This article is for those just new to coding and struggling to learn how to connect you project to Github. This process is a simple step by step without the extra fluff.

Before getting start, I am assuming you have already created your project and now are ready to connect to a Github.

Let’s get started:

  1. Create a public repository in Github by giving it a name and without the README file
Click on the “New” button
Click “Create Repository”

2. Once you’ve created the repository, Github will provide a list of commands.

For this instance, you’ll use the second set up of instructions. Enter each command one by one in your terminal window (make sure you’ve navigated to the appropriate project folder).

echo "# Test" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https:<enter the url provided to you>
git push -u origin main

3. Once you’ve entered each command one by one, confirm your first commit by refreshing the repository’s commit page

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Gabbie De Los Angeles
Gabbie De Los Angeles

Written by Gabbie De Los Angeles

0 Followers

First-generation | Product Growth | ex-Uber/Bird

No responses yet

Write a response