Skip to content

Instantly share code, notes, and snippets.

@jennings
Last active July 2, 2026 05:07
Show Gist options
  • Select an option

  • Save jennings/71fc13e14c6a576eca565bd15a219837 to your computer and use it in GitHub Desktop.

Select an option

Save jennings/71fc13e14c6a576eca565bd15a219837 to your computer and use it in GitHub Desktop.
Pre-push “hook” for Jujutsu
[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