I'm looking for help closing questions as a duplicate of a canonical question about "reverting to a specific Git commit". This is the canonical,
and these are the duplicates,
Revert to a commit by a SHA hash in Git?(closed)How do you roll back (reset) a Git repository to a particular commit?(closed)Reverting to a specific commit based on commit id with Git?(closed)Removing unwanted files from local and reverse commit/merge(closed)Checkout old commit and make it a new commit(closed)git revert back to certain commit(closed)
Why Are These Duplicates?
All of the questions revolve around "reverting to a specific commit", but there are a lot of instances of the askers and answerers not clearly explaining what they mean by "revert", so a lot of the answers address the different possible meanings of "reverting to a commit":
git checkout <commit>
git reset --hard <commit>
git revert <commit>
This answer to How to revert Git repository to a previous commit? does the best job of explaning all three of these different ways to "revert to a specific commit", and it's also the most comprehensive answer (for example, pointing out that you can pass a commit range to git revert
). The question also has the most answers to it.
It would be great then if the other questions could be closed as a duplicate of the canonical I picked out, and also possibly have the other answers merged into it.
I've previously tried to close most of these questions as duplicates, but I don't have the mighty Mjolnir yet, and my previous votes aged away many weeks ago.
Downvoting?
So I noticed that the questions I picked out as duplicates have recently been getting downvotes. It's often said on Meta that, with the exception of sockpuppeting and user-harrasment/revenge votes, users are allowed to vote any way they please. So I'm not going to tell people that they shouldn't downvote these questions, but I would suggest that many of these questions are not downvote worthy, since they were asked before the canonical question was asked. The canonical just happened to get better answers.
For most cases, I also happen to find downvoting duplicates a little counter-productive, since they serve as useful signposts to a canonical question. You'll notice that all 4 questions phrase their problem in slightly different ways in the title. They now all point to the canonical question, so why would you want to encourage the askers to delete them? The duplicates serve a useful purpose now.