25
That time I finally learned how to use Git branches properly after 2 years of struggling
I kept making changes directly on my main branch and it was a mess every time I needed to roll back. A friend on Reddit told me to try making a separate branch for every new feature, even small ones. So I started doing that with my login page project last October and it saved me like 3 hours of rework when I broke the CSS. Has anyone else here had that moment where version control just clicked for them?
2 comments
Log in to join the discussion
Log In2 Comments
perry.jessica26d ago
You mentioned "made changes directly on my main branch" and honestly, that was me for way too long. I remember finally getting comfortable with `git stash` when I accidentally deleted a whole afternoon's work on a feature branch and just popped it back like nothing happened. It's that weird relief when you realize you've been doing it wrong for years but now you're actually saving time instead of causing more problems.
5
barbaraschmidt26d ago
That git stash moment is pure magic the first time it actually saves you. I remember stashing some messy half-finished changes, pulling in an urgent fix, then popping them back and picking up right where I left off. Feels like finding money in an old coat pocket. Why does it take so long to trust the tools like that?
9