Changes between Version 15 and Version 16 of WorkingConventions/GitSPJ


Ignore:
Timestamp:
May 3, 2011 6:57:50 AM (3 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkingConventions/GitSPJ

    v15 v16  
    9191}}} 
    9292 
     93=== Undoing a commit you wish you hadn't made === 
     94 
     95If you have not yet pushed, you can just back up the head pointer one step: 
     96 * `git reset --soft HEAD^` 
     97If you have pushed, you make a commit that exactly undoes what you did, and push that: 
     98 * `git revert HEAD` 
     99See http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#fixing-mistakes 
    93100 
    94101---------------