miniblog.

← Back to all posts
410
I'm experimenting with jj this weekend. It seems pretty nice so far, but the mental model is pretty different from git. For example, there's no `checkout` command. You do `jj new ABC` to switch to a commit, which creates a new empty commit on top of ABC.

10 Comments

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.
If you have any recommendations for additional resources (how did you learn?), I'm all ears :)
Someday I can point you to v2, which will be more comprehensive 😂 Happy to answer questions here or in the discord too
@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.