←back to thread

94 points vincent_s | 1 comments | | HN request time: 0s | source
Show context
viraptor ◴[] No.40912294[source]
How do people work with jujutsu and hacks/secrets? Having no staging feels like a disaster magnet to me where things that should never be published have a chance to be saved and distributed by accident. I consistently have some temporary workarounds / scripts / credentials / logs hanging around my repos while I work on things. I think I'd have to change my approaches significantly to use this safely.
replies(4): >>40912761 #>>40914632 #>>40915885 #>>40917149 #
1. xlii ◴[] No.40912761[source]
In short commit is your stage.

It’s expected that you look at the commits before you push, the same as you do with staging. If you’d just "commit -am" the results would be the same.

And since a commit can branch you can have a multiple (conceptual) stages.

Jujutsu respects gitignore but cannot be told to not track in-file changes. Annoying when your peers commit customization files into the repository.