←back to thread

94 points vincent_s | 1 comments | | HN request time: 0.246s | 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. 3523582908 ◴[] No.40915885[source]
I am a fan of the dev branch strategy [1], where I have a specific commit that holds all my customizations that I rebase off of. This blog post has it set up such that git automatically ignore pushing the dev commit, but I haven't really gotten that far yet. I just rebase my branch off current main when I'm ready to push.

[1]: https://reasonablypolymorphic.com/blog/jj-strategy/index.htm...