How To Save Project Changes to Github

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.
- git init (This initializes the existing git repository)
- git add . (This adds ALL your latest changes)
- 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.
