LobstersWednesday · May 20, 2026FREE

Better generated branch names with jj

jjgitbranch-namingdevops

In a blog post on ddbeck.com, the author describes a method for improving branch naming conventions in Git by leveraging jj (Jujutsu), a version control system that aims to simplify Git workflows. The key insight is using jj's bookmark template system to automatically generate branch names based on commit metadata, such as the commit message or author. The template is configured via jj's `git.push-bookmark-template` setting, which allows users to define a pattern for branch names when pushing to a remote. For example, a template like `{{commit.short_prefix}}-{{commit.description | trim | replace(' ', '-') | truncate(40)}}` produces names like `abc1234-fix-login-bug`. This approach eliminates the need for manual naming and ensures consistency across a team. The post includes concrete examples and configuration steps, making it practical for developers already using jj or considering adoption. The author notes that this method works with jj's native Git interop, so it integrates seamlessly with existing Git remotes.

// why it matters

Automates branch naming, reducing cognitive load and enforcing consistency in collaborative Git workflows.

Sources

Primary · Lobsters
▸ Read original at ddbeck.com

Like this? Get the next digest.

Better generated branch names with jj — aigest.dev