8
My code got wiped because I misunderstood git push, and now I'm spooked.
I mean, if you're new to coding, double-check your git commands before hitting enter because losing hours of work is no joke.
2 comments
Log in to join the discussion
Log In2 Comments
anderson.cora8d ago
Ugh, that's the worst feeling. I once did a git reset on the wrong branch and deleted like two days of experimental changes. Had to manually re-create so many weird little fixes from memory, it was brutal.
2
the_jesse8d ago
Git can be really tricky when you're starting out because the commands don't always do what you expect. I read once how push and fetch terms come from old computer ideas, which might explain why they're confusing. Well, that's a side note, but setting up a backup branch before big changes saved me once. You could make a habit of that, so even if you mess up, your work isn't totally gone. It's like a safety net that lets you learn without the constant fear of losing everything.
1