File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # jj duplicate
2+
3+ > Create new changes with the same content as existing ones.
4+ > More information: < https://jj-vcs.github.io/jj/latest/cli-reference/#jj-duplicate > .
5+
6+ - Duplicate the current revision onto its existing parent:
7+
8+ ` jj duplicate `
9+
10+ - Duplicate a specific revision onto its existing parent:
11+
12+ ` jj duplicate {{revset}} `
13+
14+ - Duplicate a revision onto a different parent:
15+
16+ ` jj duplicate --destination {{dest_revset}} {{revset}} `
17+
18+ - Duplicate a revision and insert it ** after** other revision(s):
19+
20+ ` jj duplicate --insert-after {{after_revset}} {{revset}} `
21+
22+ - Duplicate a revision and insert it ** before** other revision(s):
23+
24+ ` jj duplicate --insert-before {{before_revset}} {{revset}} `
25+
26+ - Duplicate onto multiple parents (creates a merge commit):
27+
28+ ` jj duplicate --destination {{destination1}} --destination {{destination2}} {{revset}} `
29+
30+ - Duplicate multiple revisions:
31+
32+ ` jj duplicate {{revset1 revset2 ...}} `
You can’t perform that action at this time.
0 commit comments