JJ Notes/Commands
Key points to note/remember as my familiarity with jj grows.
Cloning:
jj git clone <url> --remote origin --colocate
Removing the remote from repo:
If you do:
jj git remote remove origin
And then try to do:
jj bookmark list
You will get an error because the trunk() still points to main@origin. This needs to be changed:
>> jj config edit --repo
---
"trunk()" = "main"
Instead of directly editing commit/revision files, use jj new and jj squash instead, otherwise it may cause conflicts and inaccurate times.
Evolog
Never directly edit an evolog jj edit <sub-change>, because doing that brings that change out of the main revision into its own revision, thus creating a new tree and conflicts, because it brings out sub-commits of its ancestors’ revisions.