DEV Community

Cover image for Those Green Squares! (Github Edition | Part 1)
Anup Bartakke
Anup Bartakke

Posted on

Those Green Squares! (Github Edition | Part 1)

Check out my GitHub Profile ! [https://github.com/thebartakke-anup]

The Addiction of the Green Square...
You create a repository, you push a few lines of code, and suddenly, you see it: that first bright green square on your GitHub profile.

At first, it’s just a tracker, but soon, it becomes a high score or a streak. You find yourself wanting to "commit just one more thing" before bed. You start thinking about your code in "daily streaks." If you’re like me, you’ve realized that GitHub isn’t just a storage unit for code it’s a productivity engine that’s surprisingly addictive.

The "Staging Area" Learning Curve
When I first started, I underestimated the "git add .". I later realised that it is a loading dock, preparing a package for a journey. I learned the hard way that you can’t just throw things into the file and hope that it is pushed.

There’s a logic to it:

The Working Directory: Where the chaos happens
(and where my Python and C files live).
The Staging Area: The "Confirmation Screen" where you decide what’s actually ready for the world to see.
The Commit: The permanent seal, that should be a clear, professional headline of what you’ve built.

The "Cooked" Moment: Surviving the Rebase
Every developer hit that wall. You’ve coded your heart out, you’ve committed your changes, and you type git push... only to be met with a wall of red text.

"Rejected." "Fetch first." "Remote contains work that you do not have locally."

In that moment, you feel "cooked." But as I discovered today, it’s usually just a sync issue. Maybe GitHub created a ".gitignore" file that your laptop doesn't know about yet. This is where the "git pull --rebase" becomes your best friend. It’s the "handshake" that aligns your local work with the cloud, ensuring files sits perfectly in GitHub’s template.

Quality Over Quantity
The temptation is to push every typo just to keep the streak alive. But the real "pro move" is intentionality. Whether it’s spreading out 10 C language exercises over 5 days to show consistent growth, or grouping logic into clean, readable commits, your GitHub profile is a real digital ledger you can be proud of one or two years down the line.

Is GitHub addictive? Absolutely. But it’s the best kind of addiction. It forces you to be organized, it rewards your consistency, and it turns the lonely act of coding into a visible journey of progress.

Top comments (0)