forked from mirrors/jj
docs: update git-comparison doc with help about working with branches
This commit is contained in:
parent
cea3c1537a
commit
39693dcaff
1 changed files with 25 additions and 0 deletions
|
@ -151,6 +151,31 @@ commit), but that's left out of the table to keep it simple. For example,
|
|||
<td><code>echo resolved > filename; git add filename; git
|
||||
rebase/merge/cherry-pick --continue</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>List branches</td>
|
||||
<td><code>jj branches</code></td>
|
||||
<td><code>git branch</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Create a branch</td>
|
||||
<td><code>jj branch <name> -r <revision></code></td>
|
||||
<td><code>git branch <name> <revision></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Move a branch forward</td>
|
||||
<td><code>jj branch <name> -r <revision></code></td>
|
||||
<td><code>git branch -f <name> <revision></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Move a branch backward or sideways</td>
|
||||
<td><code>jj branch <name> -r <revision> --allow-backwards</code></td>
|
||||
<td><code>git branch -f <name> <revision></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Delete a branch</td>
|
||||
<td><code>jj branch --delete <name> </code></td>
|
||||
<td><code>git branch --delete <name></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>See log of operations performed on the repo</td>
|
||||
<td><code>jj op log</code></td>
|
||||
|
|
Loading…
Reference in a new issue