←back to thread

Jujutsu for everyone

(jj-for-everyone.github.io)
434 points Bogdanp | 1 comments | | HN request time: 0.208s | source
Show context
a022311 ◴[] No.45085375[source]
Nice work! I've been using Jujutsu for almost 5 months and have completely replaced git. In fact, I've interacted with Git only 52 times (41 if we exclude my invocations of `--help` xD) since then vs 582 with Jujutsu.

Instead of having to adapt to a particular workflow, Jujutsu is flexible enough to support pretty much any workflow. Even when mostly using it like git, I have the freedom to jump around commits and branches (no stashing required), rebase easily (this may be simple for git power users, but I really appreciate being able to do this without VSCode's git tools) and just... get work done without extra headaches caused by VCS. And all that while writing my changes to an actual git repository just like everybody else's, that git tooling can interact with. When was the last time you used a different VCS than your coworkers without having them switch to it too?

While there are some rough edges regarding tags, submodules and LFS (I might be missing something else here), it's certainly worth a try.

replies(3): >>45085458 #>>45085620 #>>45117062 #
wocram ◴[] No.45085620[source]
What is the replacement for `git branch --set-upstream-to`?
replies(1): >>45086330 #
a022311 ◴[] No.45086330[source]
Unfortunately there is no replacement for it and I miss the feature too. The docs [1] mention:

> Unlike in Git, the remote to push to is not derived from the tracked remote bookmarks. Use `--remote` to select the remote Git repository by name. There is no option to push to multiple remotes.

I think this was an explicit design decision, which I'm guessing might be because bookmarks in other storage backends (non-git) may not have a notion of an upstream URL. I'm no expert on this, you'll probably get a better answer by asking the maintainers themselves.

Currently the best you can probably do is creating an alias to push a branch to a specific remote to save you some keystrokes. I hope that helps!

[1]: https://jj-vcs.github.io/jj/latest/cli-reference/#jj-git-pus...

replies(1): >>45094799 #
1. wocram ◴[] No.45094799[source]
In git remote branches have no notion of an upstream branch either, it's a fully local construct you end up responsible for annotating.