Changes between Initial Version and Version 1 of remote/git


Ignore:
Timestamp:
Mar 9, 2015 1:42:34 PM (7 years ago)
Author:
vegasm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • remote/git

    v1 v1  
     1{{{
     2
     3#Point to another commmit (commit your uncommited changes before doing this)
     4git checkout [comit_hash]
     5
     6# Resets index to former commit; replace '56e05fced' with your commit code
     7git reset 56e05fced
     8
     9# Moves pointer back to previous HEAD
     10git reset --soft HEAD@{1}
     11
     12git commit -m "Revert to 56e05fced"
     13
     14# Updates working copy to reflect the new commit
     15git reset --hard
     16
     17}}}