Re:jj: a Git-compatible VCS that is both simple and powerful
by bboygravity on Tuesday February 18, 2025 @01:43AM
(#43086734)
I keep reading explanation similar to yours, yet it obviously doesn't work in my case.
I'm probably doing something dumb/wrong, some setting somewhere, wrong OS, whatever it is: it proves my point that git is harder than it should be.
This is one of the things git excels at: You didn't lose your history because that's not how git handles it. Git might be the only version control that can actually handle your case (renaming files without using a special command) - it looks for file similarity between a deleted file and an added file in the same commit, with various flags to make this look in broader places.
"git mv file1 file2" is almost identical to "mv file1 file2" + "git add file1 file2" (it also handles unstaged changes instead staging them)