top | item 46162911

(no title)

oscillonoscope | 2 months ago

I more or less use the method described [here](https://steveklabnik.github.io/jujutsu-tutorial/advanced/sim...) for branches. One thing I do change is that I set the bookmark to an empty commit that serves as the head of each branch. When I am satisfied with a commit on head and want to move it to a branch I just `jj rebase -r @ -B branch`. When I want to create a new branch it's just `jj new -A main -B head` and `jj bookmark set branch_name -r @`

discuss

order

conradludgate|2 months ago

_Every time I see one of these nifty jj tricks or workarounds I find myself wondering, “why not just use git?”_

steveklabnik|2 months ago

How would you do this in stock git?