How do I undo my most recent local commits in Git?
Did you accidentally commit a whole bunch of files in Git, but - thankfully - haven’t pushed that commit to remote, and want to undo it? I'll show you a couple ways you can fix it (one-liners!).
I’m Steve, a professional software developer based in Dallas, Texas. I really like programming and I’d consider myself good at it 🤓. I started coding back in 2019 (it’s been 5 years!?) and I’m blessed to get paid to do something that I’d also consider my hobby 🙏.
Did you accidentally commit a whole bunch of files in Git, but - thankfully - haven’t pushed that commit to remote, and want to undo it? I'll show you a couple ways you can fix it (one-liners!).
Ever click a button or tab and have all the text instead? You can prevent simple accidents like that from happening again with vanilla CSS - no JavaScript needed!
Let's talk about the spread operator in JavaScript. These little dots (...) may look weird, but they're really helpful for managing props and state.