Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am using git to track my commits in a Drupal 7 site. I was involved in a project which uses git to move between production and development server. I made some changes in features and pushed it to the production server. I now notice the following error:

The website encountered an unexpected error. Please try again later.

I am sure this is because of some feature errors, but at the same time I am not sure what feature caused this to happen.

I want to know is there a possible way to remove the commits by date. Like remove commits from 25th may? or Set header before 25th may?

share|improve this question

closed as off topic by Clive, Patrick Kenny, Berdir, kiamlaluno Jun 8 '12 at 14:45

Questions on Drupal Answers are expected to relate to Drupal within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

4  
-1 for question not related to Drupal 7 –  Abubakar Shams Jun 8 '12 at 9:49
2  
@Slasengger: Given it appears you only have one StackExchange(SE) account, it's possible you don't know about Stackoverflow; this is likely where GIT questions would be a better fit on that SE. My suggestion would be to have kiamlaluno move your question to that SE instead of closing it since it appears you didn't know GIT questions would be outside of the topics covered within Drupal. –  blunders Jun 8 '12 at 15:07

1 Answer 1

up vote 4 down vote accepted

To revert a very simple commit, this is enough:

git revert ba24a3fdeae4a3a034691308171d798d2ddbf93e

here that long string of characters is the ID of the commit you are reverting.

To get the ID of the commit see the git log.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.