@@ -183,9 +183,9 @@ an existing one), you use the command::
183
183
184
184
``PATH `` is optional: if it is omitted, all changes in your working copy
185
185
will be committed to the local repository. When you commit, be sure that all
186
- changes are desired by :ref: ` reviewing them first < hg-status >`;
187
- also, when making commits that you intend to push to public repositories,
188
- you should ** not ** commit together unrelated changes.
186
+ changes are desired by reviewing them first; also, when making commits that you
187
+ intend to push to public repositories, you should ** not ** commit together
188
+ unrelated changes.
189
189
190
190
To abort a commit that you are in the middle of, leave the message
191
191
empty (i.e., close the text editor without adding any text for the
@@ -289,17 +289,13 @@ committing*.
289
289
How do I undo the changes made in a recent commit?
290
290
''''''''''''''''''''''''''''''''''''''''''''''''''
291
291
292
- First, this should not happen if you take the habit of :ref: ` reviewing changes
293
- <hg-status>` before committing them.
292
+ First, this should not happen if you take the habit of reviewing changes before
293
+ committing them.
294
294
295
295
In any case, run::
296
296
297
- hg backout <revision number>
297
+ git revert <revision number>
298
298
299
299
This will modify your working copy so that all changes in ``<revision number> ``
300
- (including added or deleted files) are undone. You then need to :ref: `commit
301
- <hg-commit>` these changes so that the backout gets permanently recorded.
302
-
303
- .. note ::
304
- These instructions are for Mercurial 1.7 and higher. ``hg backout `` has
305
- a slightly different behaviour in versions before 1.7.
300
+ (including added or deleted files) are undone. You then need to commit
301
+ these changes so that the backout gets permanently recorded.
0 commit comments