DubStack
Commands

dub modify

Amend or create commits on the current branch, then automatically restack descendants.

Usage

# Amend current commit
dub modify

# Create a new commit
dub modify -c -m "fix: ..."

# Interactive staging
dub modify -p

# Stage all tracked updates
dub modify -u

# Show staged diff before modify
dub modify -v

# Show staged + unstaged diff before modify
dub modify -vv

# Interactive rebase of this branch's commits
dub modify --interactive-rebase

Flags

FlagDescription
-a, --allStage all changes
-u, --updateStage tracked-file updates
-p, --patchInteractive hunk staging
-c, --commitCreate a new commit instead of amending
-e, --editEdit the commit message
-m, --message <msg>Commit message (repeatable)
-v, --verboseShow diff before modify (repeatable: -vv for staged+unstaged)
--interactive-rebaseInteractive rebase of branch commits

Aliases: dub m

Common Patterns

Address review feedback on a middle branch:

# Jump to the branch
dub co feat/auth-login

# Edit files, then amend + restack descendants
dub m -a -m "fix: address review feedback"

# Push updates
dub ss

On this page