ok/jj
1
0
Fork 0
forked from mirrors/jj

docs: remove unnecessary git steps in git-comparison doc

The table describes the simplified Git workflow of always using `git
commit -a`. With that workflow, you don't need to `git add` or `git
rm` to stage changes.
This commit is contained in:
Martin von Zweigbergk 2021-09-12 11:55:37 -07:00
parent 802bd227e0
commit 1f2ce49e89

View file

@ -71,12 +71,12 @@ commit), but that's left out of the table to keep it simple. For example,
<tr>
<td>Remove a file from the current change</td>
<td><code>rm filename</code></td>
<td><code>git rm filename</code></td>
<td><code>rm filename</code></td>
</tr>
<tr>
<td>Modify a file in the current change</td>
<td><code>echo stuff >> filename</code></td>
<td><code>echo stuff >> filename; git add filename</code></td>
<td><code>echo stuff >> filename</code></td>
</tr>
<tr>
<td>Finish work on the current change and start a new change</td>