Last active
July 2, 2026 05:07
-
-
Save jennings/71fc13e14c6a576eca565bd15a219837 to your computer and use it in GitHub Desktop.
Pre-push “hook” for Jujutsu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [aliases] | |
| push = ["util", "exec", "--", "bash", "-c", ''' | |
| jj run -r "remote_bookmarks()..$1" --no-edit \ | |
| -- pre-commit && | |
| jj git push -b "$1" | |
| ''', "jj-push"] | |
| # usage: | |
| # jj push my-bookmark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment