hgbook
changeset 180:6413f88338df
Point to chapter on undoing mistakes.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri Mar 30 23:20:27 2007 -0700 (2007-03-30) |
parents | 5fc4a45c069f |
children | d4570b8c78bd |
files | en/daily.tex |
line diff
1.1 --- a/en/daily.tex Fri Mar 30 23:05:28 2007 -0700 1.2 +++ b/en/daily.tex Fri Mar 30 23:20:27 2007 -0700 1.3 @@ -366,6 +366,27 @@ 1.4 directory with the same name. This is documented as~\bug{29}. 1.5 \interaction{issue29.go} 1.6 1.7 +\section{Recovering from mistakes} 1.8 + 1.9 +Mercurial has some useful commands that will help you to recover from 1.10 +some common mistakes. 1.11 + 1.12 +The \hgcmd{revert} command lets you undo changes that you have made to 1.13 +your working directory. For example, if you \hgcmd{add} a file by 1.14 +accident, just run \hgcmd{revert} with the name of the file you added, 1.15 +and while the file won't be touched in any way, it won't be tracked 1.16 +for adding by Mercurial any longer, either. You can also use 1.17 +\hgcmd{revert} to get rid of erroneous changes to a file. 1.18 + 1.19 +It's useful to remember that the \hgcmd{revert} command is useful for 1.20 +changes that you have not yet committed. Once you've committed a 1.21 +change, if you decide it was a mistake, you can still do something 1.22 +about it, though your options may be more limited. 1.23 + 1.24 +For more information about the \hgcmd{revert} command, and details 1.25 +about how to deal with changes you have already committed, see 1.26 +chapter~\ref{cha:undo}. 1.27 + 1.28 %%% Local Variables: 1.29 %%% mode: latex 1.30 %%% TeX-master: "00book"