logoalt Hacker News

smackmybishoplast Tuesday at 12:06 PM3 repliesview on HN

Just don't ever use `edit`, use `new` instead; then your changes are tracked without making a mess. I think that's much nicer than juggling stashes in git.


Replies

embedding-shapelast Tuesday at 1:08 PM

> Just don't ever use `edit`, use `new` instead

As a git-ist (?), if I'd ever move away from git, it would be to avoid tooling that has idioms like this (like git too has), if `jj` just gonna surface a bunch of new "bad ideas" (together with what seems like really good ideas), kind of makes it feel like it isn't worth picking up unless you don't already know git.

show 4 replies
busfahrerlast Wednesday at 10:49 AM

Once you get your head around it a bit, doing a new in this circumstance will be second nature, since you will have realized that a `new XYZ` in jj leads to the same underlying git state as a `git checkout XYZ` in git

VMGlast Tuesday at 12:15 PM

... unless you actually want to edit a change!

show 4 replies