Skip to main content
git10

10 posts tagged with "git"

Articles tagged with git

10 articles
#git

Your git commit history could be telling an epic tale of how your codebase evolved, or it could be a cryptic collection of "fixed stuff" and "updated things." The difference isn't just aesthetic—it's the line between a repository that teaches and one that confuses. Well-crafted commits don't just track changes; they document your code's journey in a way that helps your team and future you.

I stumbled across Git Notes during a late-night debugging session last week, and honestly, I'm slightly annoyed that I hadn't been using this feature for years. If you've ever wanted to attach persistent metadata to commits without changing commit hashes (and who hasn't?), this hidden gem deserves your attention. And while we're exploring Git's underappreciated features, let's also look at Git trailers - another powerful tool for managing metadata in your repositories.

Version control with Git offers developers multiple ways to integrate changes across branches, with merge and rebase standing as the two primary approaches. While both accomplish the same fundamental goal—incorporating changes from one branch into another—they do so through fundamentally different mechanisms, resulting in distinct commit histories and team workflows. Understanding when to use each strategy can significantly impact your project's history clarity, team collaboration, and conflict resolution process. In this deep dive, we'll explore how each option works under the hood, examine real-world usage patterns, and provide clear guidelines for choosing the right approach for your specific situation.

We've all been there. You're working late, feeling productive, and you run git add . without thinking. Then you realize you just committed your .env file with production API keys, or that embarrassing debug log with customer data, or your personal notes with colorful commentary about the codebase.

The good news? This is fixable. The bad news? Simply deleting the file and making a new commit doesn't solve the problem. That sensitive data is still sitting in your Git history, waiting for someone with git log and too much curiosity.

Here's how to actually remove files from Git history, when to use different approaches, and how to avoid this mess in the future.

gitdevelopment6 min read

Discovering Changes in Your Git Repository

So you've just come back from vacation and want to see what your co-workers have been up to? Or maybe you're returning to a project after a long break and need to catch up. Git has a powerful, yet often overlooked, command that can show you all the commits that have happened since you last checked in.