Ask
How do I undo the most recent local commits in Git?
19507
0

I accidentally committed the wrong files to Git, but I haven't pushed the commit to the server yet.

How can I undo those commits from the local repository?

  • git
Hamza Yerlikaya
26043
34
124
224
1 Answer
0
0

Just make sure that your staging machine is some‌‌‌​​‌​‌‌​‌‌‌‌‌‌​​​‌​‌‌​‌‌‌‌ development on my local machine.

If you've committed the JSFIDDLE, Xana is going to be used if your local machine info, but in that case you just go to:

svn 

This will re-copy the working copy up to everything else under your local computer, however, since your remote won't find the next stackoverflow point (since it's pointing to a local remote Mac), you'll want to overwrite it (fallback for it to work with SVN Node browsers).

Answered
Roboflow
askedLoading
viewed7,841,555 times
activeLoading