How To Save Project Changes to Github

Gabbie De Los Angeles
2 min readMay 16, 2023

--

When I first started coding, like many others, I was utterly confused when it came to GitHub. Every article I read seemed simple yet I failed to truly grasp what I was actually doing and why. After much practice I eventually caught on. I’ve decided to share a simple step by step process without all the extra fluff.

Before getting started, keep in mind that this process comes after you’ve created your project and successfully linked it to a GitHub repository.

As you start building your project you’re going to want to save your changes regularly. To do so make sure you’ve navigated to your project folder in the terminal window. Once you’ve done that, enter the following commands one by one.

  1. git init (This initializes the existing git repository)
  2. git add . (This adds ALL your latest changes)
  3. git status (This is purely for visibility. You don’t need it but I prefer to use it. When using this command you’ll see the list of files that were modified during your coding session. Those are the changes that will be pushed into GitHub. It will look something like this)

4. git commit -m “description” (This is where you add a short note describing the changes you made. See example below.)

5. git push -u origin main (This final step actually pushes your latest changes into Github)

It’s good practice to refresh your commits window to view if the latest push went through. This is what I look for to confirm that my latest push success was successful.

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