6
My project went from a mess to working in about 3 hours after I learned about version control
I was building a simple to-do list app with HTML and JavaScript, just following a tutorial. I kept making changes, breaking things, and then I couldn't figure out how to get back to the last version that actually worked. I lost almost a full day's work last week trying to fix my own mistakes. Then a friend told me to just use Git. I set up a GitHub account and started committing my changes. The difference was crazy. Yesterday, I messed up a function that handled deleting tasks. Instead of panicking, I just used 'git checkout' to go back to my last commit. In maybe 10 minutes, I was back to a working version and could try a new fix. It felt like a superpower. Has anyone else had a moment where learning one basic tool completely changed how you code?
2 comments
Log in to join the discussion
Log In2 Comments
bell.laura9d ago
Oh man, totally. That first git revert is magic. I did the same thing with a CSS file, kept breaking the layout. Being able to just go back to yesterday's code saved my sanity. It's like an undo button for your whole project.
1
the_fiona9d agoMost Upvoted
Honestly @bell.laura, calling it magic seems a bit much for just fixing a broken layout.
5