Jujutsu: Working With Git
After reading (not done) Steve’s Tutorial and Official doc 1 (which mentions Steve’s tutorial anyway) I decided that actually using it on real projects is the way to go.
Here is the workflow (after a few 2 iterations 3) that works
jj new
: Declare your intention to start new work.jj describe
: Intention alone is not enough 😀. What will you be working on ?- Now work. Make changes.
- Time to make our “change” available in git. Get the change id from
jj log
jj bookmark set main -r <change_id_from_previous_step>
jj bookmark track main@origin
(or appropriate branch onorigin
). You’ll need this step only once.jj squash -i
: Select the files that need to be “added” to the commitjj git push --allow-new -b main --remote origin
4 Done!
Finally, I must say that I’m blown away (and humbled) by the fact that “The Steve Klabnik” who wrote the Jujutsu tutorial and the Rust book, helped me 5 (Near real time responses) with my problem.
Steve, I’m really grateful for your help 🙏