Forem

Cover image for Simple Git workflow for beginners
Maher Alkendi
Maher Alkendi

Posted on

2 2

Simple Git workflow for beginners

This post is to share the git workflow I use for my projects. I am mainly writing this post so I can use it as a cheat sheet from time to time. However, I think it will serve as a good reference for any developer that wants to go beyond the git add git commit git push workflow.

This posts assumes that you are familiar with the basics of git. If you are not then I recommend the video below, by Traversy Media for a quick overview:

Step 1: Create a branch for the feature you want to add and navigate to it

git checkout -b <branch-name>

Step 2: Make changes to your code

Use the following command to see changes:

git status

Step 3: Add changes to staging area

git add <files-changed>

Step 4: Commit changes and add a short description

git commit -m "<commit message>"

For commit messages I use the article by Chris Beams as reference:

How to Write a Git Commit Message

Step 5: Navigate to main branch

git checkout master

Step 6: Push changes from branch to create a pull request

git push origin <branch-name>

Pull request can be found on github or gitlab (whatever you are using). There you can review and add more comments to it.

That is all!

Got questions? Feel free to reach out via the comments or my twitter

Ok! Now back to learning 👨🏿‍💻

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay