News for hackers. Stuff that matters.
Re:Git reset vs. Git revert by tomc1985 on Monday February 04, 2019 @11:15PM (#19082982)
Very few? I find myself having to use it a lot (usually targetting HEAD or HEAD~1), and actually it's kind of handy for clearing out any cruft when switching between project branches. The important thing to know is that it only acts on files that are added to git, and will pass over any that are not.
Re:Git reset vs. Git revert by emeraldd on Tuesday February 05, 2019 @09:58AM (#19085793)
I've used `reset` that way a few times, but pretty much never `reset --hard` Still, this is not something that should be suggested to someone unfamiliar with git. It's just too easy to screw up your codebase.