TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Steve's Jujutsu Tutorial

158 点作者 drudru7 个月前

20 条评论

videlov7 个月前
Martin (the jj creator) recently gave a talk at the Git Merge 2024 conference: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;LV0JzI8IcCY?si=Pun7WJp4ZWvHq-3G" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;LV0JzI8IcCY?si=Pun7WJp4ZWvHq-3G</a>
klauserc7 个月前
Been using jj at work for months now. In colocated mode, JetBrains IDEs even retain some if their VCS integration.<p>The ability to easily work on top of an octopus merge and then push changes &quot;down&quot; into the contributing branches has been a live saver when my team had to do a big refactoring in a mono repo and split the changes into small PRs for individual teams (code owners).<p>The auto committing behavior is a bit weird at first, but now I don&#x27;t want to go back to git. It feels a bit like the step from SVN to git back in the the day. (&quot;this feels weird&quot; -&gt; &quot;how did people ever tolerate the old way?&quot;)
评论 #41887674 未加载
评论 #41897722 未加载
评论 #41922836 未加载
评论 #41887254 未加载
swiftcoder7 个月前
&gt; I also heard friends rave about &quot;stacked diffs&quot; but struggled to understand what exactly was going on there. Nothing I read or conversations I had have clicked.<p>I wonder what it is about descriptions of stacked diffs that doesn&#x27;t land - it&#x27;s literally just a rebase-centric workflow instead of the merge-centric workflow popularised by GitHub et al.
评论 #41887662 未加载
评论 #41887096 未加载
phildenhoff7 个月前
Steve, I see you’re in this thread. I was using jj for a while before reading your tutorial and yet still found it quite insightful and helpful. Thanks for your contribution!
评论 #41887679 未加载
jFriedensreich7 个月前
I am torn between sapling and jj. Both make good progress in git&#x2F;github integration which seems to have been the major road block in adoption before. One other major roadblock seems to be the limits of review tools supporting stacks: github PRs are too limited, gerrits ux is horrible, graphite does not work and is not open enough, saplings review tool is just a very slow performing POC (though with a really good UI concept as starting point)
评论 #41887438 未加载
评论 #41889810 未加载
评论 #41897235 未加载
评论 #41887607 未加载
nixosbestos7 个月前
One of my favorite people talking about my single favorite tool of the past 3+ years. Up there with (above, really) zellij and helix for changing my daily life.
评论 #41886677 未加载
评论 #41890187 未加载
thih97 个月前
Love it, read a couple of chapters already and planning to finish the rest. As a person completely new to jj and someone who also enjoys git CLI, this is an intuitive, very useful and enjoyable read.<p>I’m especially interested after learning about the git compatible backend:<p>&gt; There&#x27;s one other reason you should be interested in giving jj a try: it has a git compatible backend, and so you can use jj on your own, without anyone else you&#x27;re working with to convert too.
评论 #41892361 未加载
lawn7 个月前
I really like Jujutsu but I went back to Git because there wasn&#x27;t a Neovim plugin with features comparable to Neogit or Fugitive.<p>I even started writing one but that was a pretty big project and I lost the motivation for it.
评论 #41887707 未加载
stavros7 个月前
This was informative, thanks Steve! The only problem I had was that the difference between changes and commits wasn&#x27;t clarified enough in the beginning, and I got lost trying to distinguish between the two. I&#x27;m on chapter 4 and I&#x27;m still not sure what a change is and what a commit is.<p>From a tiny bit of previous jj experience, my mental model is &quot;a commit is the snapshot, and a change is what happened between snapshots&quot;, but that might be wrong. It would be great if this could be clarified a bit more in the tutorial.
评论 #41897827 未加载
评论 #41892356 未加载
aos7 个月前
I’ve started to use jj much more often (and actually used this tutorial to get me started!). I do wish its interaction with Nix flakes is less annoying though, but that’s not the fault jj.
评论 #41899106 未加载
chaostheory7 个月前
I get that naming is one of the hardest problems in computer science, but naming software after a martial art is just lazy and will lead to problems with things like searches
评论 #41886435 未加载
评论 #41889206 未加载
评论 #41891337 未加载
ZoomZoomZoom7 个月前
Would be great if it was Pijul that got Steve&#x27;s attention. Sometimes it&#x27;s all you need to achieve a lot.
评论 #41887691 未加载
评论 #41886446 未加载
nextaccountic7 个月前
Can someone sometimes use jj and sometimes use git in the same repo?
评论 #41891820 未加载
drudru7 个月前
Steve wrote this in a very approachable style. It is the first time I really understood what &#x27;jj&#x27; is about. I&#x27;m actually kind of excited to start using this tool with my git repos.
评论 #41882373 未加载
评论 #41883048 未加载
forrestthewoods7 个月前
I’d love a Sapling vs JJ comparison post. I use Sapling at the day job and… it’s pretty dang good! Although I don’t see how I’d recommend it outside of Meta.<p>I swear the modern programmer doesn’t realize how extremely bad Git is. It does do a lot of things better than SVN. But it’s a long, long ways from “good” imho.<p>I blame GitHub. Git didn’t win because it’s good. Git won because GitHub won. If only HgHub had won instead, alas.<p>My dream VCS system would have a virtual file system, copy-on-write storage, and a system wide blob cache. The goal being to allow open source repos to commit *ALL* their dependencies, up to and including toolchains in many cases.
评论 #41889890 未加载
leighleighleigh7 个月前
It&#x27;s my first time encountering your writing Steve, loved it! Time to give JJ another crack...
评论 #41887697 未加载
cyanf7 个月前
thank you steve, i’ve been excited for this!
评论 #41887700 未加载
itohihiyt7 个月前
Came here for a martial arts tutorial, which I thought was a bit weird to see front page on HN, and now I see an alternative to git.<p>I don&#x27;t particularly like git and for personal projects use fossil instead.<p>Without going through the whole tutorial, and doing a lot more reading, why should I consider using this over fossil?
评论 #41886886 未加载
评论 #41887267 未加载
评论 #41887117 未加载
评论 #41886353 未加载
red_admiral7 个月前
I expected actual Jujutsu :)<p>I recommend looking up Bartitsu (that Conan Doyle spelled Baritsu), a short-lived but very interesting martial art.
387 个月前
Jujutsu is terrible in my opinion. people hate the index, but I think they just dont get it. to me a commit is something that is ready to push, and the index is for stuff that is done but not ready to push. just because I wrote one line that I am happy with, doesn&#x27;t mean I am ready to commit and push that. I prefer to add stuff thats done, then when enough is done I can commit and push. if you remove the index it makes it too easy to push half done stuff
评论 #41884891 未加载