News for hackers. Stuff that matters.
Re:Git undo: We can do better by nsomaru on Monday June 21, 2021 @12:27PM (#27580748)
Am I doing things wrong if I have never used these commands?
Re:Git undo: We can do better by jdauriemma on Monday June 21, 2021 @12:42PM (#27580891)
Try not to think of it in terms of right and wrong. `git clean` is useful, though not "can't-live-without-it" useful. I couldn't imagine my workflow without `git reset`, though, and I recommend checking it out!
Re:Git undo: We can do better by jonahx on Monday June 21, 2021 @01:24PM (#27581339)
Probably not using git ideally. Do you clean your history after working on a feature?
Re:Git undo: We can do better by rjmunro on Monday June 21, 2021 @01:54PM (#27581713)
No, IMHO you are doing things right. I virtually never use those commands, I've been using git for well over 10 years, and have totally got used to all it's quirks.