Jujutsu Primer

(ethanlowman.com)

23 points | by renehsz 1 hour ago

5 comments

  • ravieira 2 minutes ago
    I also strongly recommend this guide https://v5.chriskrycho.com/essays/jj-init/
  • danpalmer 14 minutes ago
    I've been using JJ almost exclusively for over 2 years now. It's great, it works fantastically with our rather large monorepo at work.

    However I mostly use it backing on to a custom VCS, not git. I can't wait to see some JJ-native forges that don't try to keep it compatible with git, I think there's a lot more benefits and more UX to be explored there!

  • NothingAboutAny 6 minutes ago
    how does using something like this compare to just using a simple git-wrapper that does all the hard stuff for you (ala lazygit)? Is jujutsu worth learning a whole new workflow for?
    • danpalmer 3 minutes ago
      In my experience, git has a few workflows that work well, and you can wrap them to improve the UX. JJ on the other hand is just designed better – there are many more workflows that will work well in it, and you can mix and match them more effectively, and because it's better designed there's less need for wrappers to simplify the UX because the fundamentals are simpler.

      That said, I think JJ will get better when it's backing on to something that's designed from scratch rather than backing on to git and forges like Git(Hub|Lab) which really restrict it.

  • herodoturtle 22 minutes ago
    Nice to see a minimal alternative to git.

    Also I’m sure there’s a joke in here about rollbacks.

  • Okkef 11 minutes ago
    While jujitsu is superior to git in many ways, I found it hard to get Claude and other agents to use it consistently and more effectively than git.

    Git and jj work trees are not interoperable, so any tool that assumes git forces you back. Looking at you, Claude app…

    • danpalmer 6 minutes ago
      Yeah it took me a while to get agents comfortable with it. Mostly I had access to Gemini, and 2.x and early 3.x models struggled. By 3.7 it was much better, and with all the 4 models it's a complete non-issue. Separately I (and others) worked on improving our JJ skills and they're in a much better place now with some scripts that wrap up more complex operations (e.g. maintaining file copy/move markers).

      This hasn't been an issue for me for a while now, and I've actually had Opus 5.5 and Gemini Hydrogen build and submit a 28 commit deep stack, with all the reviewing/rebasing/shifting around that entails.

    • bigstrat2003 6 minutes ago
      You should really be doing your own commits anyway. It's not hard, and it's important to make sure you review what is going into the repo.
      • danpalmer 1 minute ago
        I used to think this even just 6 months ago, but I no longer do. With the right prompting it's possible to get near-human results on commit chains. That said, I'm not suggesting you shouldn't review code, you absolutely should, it's just that I am fine letting agents manage the commits now.