What you want is git reset --hard

 

 


From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ms. Nancy Wichmann
Sent: Friday, March 30, 2012 8:36 AM
To: support drupal
Subject: [support] Backing out update

 

I cloned a site repository for a Drupal 7.6 site. I then copied working 7.12 core files on top of it. I have not added or committed the changes. I need to go back to the original code. I tried "git revert" and it wanted some more parameters that don't make sense to me. "Git pull" listed all the changes and then said that everything was still on "master" and the site still shows as having 7.12.

 

Other than redoing the "git clone" is there a "right" way to back out the update?

 

Nancy

 

Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.