Yep, started with that, the jj CLI reference, and the FAQ.
I had several questions that they didn't obviously answer ('how do I checkout?' 'how do I discard?'), but the Discord has been really helpful.
Wilfred Hughes
If you have any recommendations for additional resources (how did you learn?), I'm all ears :)
Wilfred Hughes
discard: `jj abandon`; plus the discord! i also liked @chriskrycho.com’s articles
Someday I can point you to v2, which will be more comprehensive 😂
Happy to answer questions here or in the discord too
I found
https://jj-vcs.github.io/jj/latest/git-comparison/ very helpful for questions like these two though obviously @davidbarsky.com already answered
@wilfredh That is the equivalent of checkout (and checkout even used to be an alias for it). Think of the empty commit as your working copy.
Note that you can also `jj edit` an existing commit (as long as it isn’t immutable), but you’re 100% correct that the closest thing to `git checkout` is `jj new`.
@wilfredh I've been dual-running git and jj for a few weeks now. jj does some cool things that I want but I find the extra cognitive load of trying to remember when, where, and how it interacts with git to be...... A Lot. I think if I were using solely jj I'd probably make the switch, but given that the rest of the world uses git I'm not sure that I can keep up the dual nature of things.
@wilfredh
Once you get used to it, it is hard to go back.