by cguess · 2mo ago · 0 comments
Git didn't take me hours to figure out while floundering, you `git add .`, `git commit -a -m "hello!"`, `git push` and it's instantly useful for doing the basics of making sure your code is somewhere else besides your laptop. The rest is details and comes up only when you need it.
"It's only after the many more months it takes to absorb its ways via osmosis that you start using it the way its makers intended." This is an insane take, and means jj will never take off (I will bet a large amount of money on it). Even with Vim or Emacs you can start writing within the first hour of opening it.
Fair enough, but I suspect in this case it's your previous experiences with VCS that make it take more than a few hours. JJ is actually simpler than git. There is no staging, no committing, less need for rebase, undo just works, it has better history - lots of things. The need to learn all those git concepts disappears with JJ. For a new user that makes life easier. But someone who comes from git has to unlearn a lot of things before they can adjust to the JJ mindset.
If all you ever do in git is "git pull; git add -A; git commit -a -m ...; git push", then switching to JJ is hard justify. Dropping the need to type "git add -A; git commit -a -m ..." isn't a big win. That's all most people do, so I expect most won't change.
But there is a reason that's all most people do in git - it's because everything else is far more messy, and dangerous. If you haven't lost work to "git reset --hard", you haven't been using git for long. Once you notice it easy to do more in JJ, things like breaking up big PR's in a series of commits that spell out a narrative of how you got from A to B, which eases the burden on the reviewer, become downright easy. Shuffling code between commits to achieve that in git is a right proper PITA, so JJ users tend to have a much tidier commit history.
That change only happens when you've become so familiar with JJ concepts, you are no longer "thinking in git", so much so the shift back to git's CLI becomes painful. It takes months. Until you get that payback, the switch is wasted time.
> If you haven't lost work to "git reset --hard"
I haven't, because why would I ever need to run that? I've reverted individual files, but never a full repo (I've been working with Git for 15 years)