22

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,

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.

2

1 Answer 1

2

git revert back to certain commit also looks like a duplicate to me. I'll try to look for more possibilities and update this post as I come across any.

5
  • this one also?
    – BartoszKP
    Jun 30, 2014 at 10:50
  • @BartoszKP: probably not the exact same situation but this one can be related.
    – Fr0zenFyr
    Jun 30, 2014 at 10:58
  • @BartoszKP yeah, I left that one alone because it deals with undoing just the very last commit, which is a special case of undoing any commit...so maybe you could argue it's a duplicate? I'm not sure. You can go ahead and close it if you really feel that it's a duplicate, I don't really care either way.
    – user456814
    Jun 30, 2014 at 11:50
  • @Cupcake The answers look almost the same. I guess "merge" would ideal in this case :) I voted for closure though, I think no essential information would've been lost if only the canonical would existed (sorry for probably broken tense-grammar ;v).
    – BartoszKP
    Jun 30, 2014 at 13:53
  • With the number of votes on that post, it is highly unlikely that any other mod would want to close it or even merge it into other post. At the most, all other similar questions can be linked to this one.
    – Fr0zenFyr
    Jul 1, 2014 at 4:10

You must log in to answer this question.