Changes between Version 16 and Version 17 of GitTips


Ignore:
Timestamp:
05/01/2013 06:24:28 PM (11 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GitTips

    v16 v17  
    5050#!sh 
    5151git update-index --no-assume-unchanged <ignored-tracked-file> 
     52}}} 
     53 
     54== Undo the last commit == 
     55''Changes are put back into staged'' 
     56{{{ 
     57#!sh 
     58git reset --soft HEAD~1 
     59}}} 
     60 
     61 
     62== Delete the last commit == 
     63''All changes are lost! '' 
     64{{{ 
     65#!sh 
     66git reset --hard HEAD~1 
    5267}}} 
    5368 
     
    108123 
    109124 
    110 == Undo the last commit == 
    111 ''Changes are put back into staged'' 
    112 {{{ 
    113 #!sh 
    114 git reset --soft HEAD~1 
    115 }}} 
    116  
    117  
    118 == Delete the last commit == 
    119 ''All changes are lost!'' 
    120 {{{ 
    121 #!sh 
    122 git reset --hard HEAD~1 
    123 }}} 
    124  
    125125== Delete a remote branch == 
    126126