git.rst
changeset 2124 3afe57643e44
parent 2123 f98c2b2e6c07
child 2126 09e2e50d02aa
equal deleted inserted replaced
2123:f98c2b2e6c07 2124:3afe57643e44
   248   $ git commit -a --amend --no-edit
   248   $ git commit -a --amend --no-edit
   249 
   249 
   250 To edit messages of old commits starting from ``$REV``::
   250 To edit messages of old commits starting from ``$REV``::
   251 
   251 
   252   $ git rebase -i $REV
   252   $ git rebase -i $REV
       
   253 
       
   254 To undo latest commit::
       
   255 
       
   256   $ git reset HEAD~1
   253 
   257 
   254 Git analog of 'hg root'
   258 Git analog of 'hg root'
   255 =======================
   259 =======================
   256 ::
   260 ::
   257 
   261