worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

stage & commit,but not merge.

Open lukehinds opened this issue 8 months ago • 3 comments

cool project, many thanks for sharing and maintaining.

so we have wt merge which stages, commits and then merges to target (which appears to be main)

and also wt merge develop which stages, commits and merges to a named branch develop

what is the workflow to stage files, commit stop there - I then push a PR git push origin mybranch?

lukehinds avatar Mar 10 '26 19:03 lukehinds

I need to RTFM, found it "wt step commit"

lukehinds avatar Mar 10 '26 19:03 lukehinds

Thanks for reaching out, and glad you're finding the project useful!

The command you're looking for is wt step commit — it stages and commits to the current branch without any merging:

wt step commit                    # stages all changes and commits
wt step commit --stage=tracked    # stages only modified tracked files

After that you can push however you like (e.g., git push origin mybranch and open a PR).

For reference, wt merge is essentially the full pipeline (commit → squash → rebase → push → cleanup), while the individual wt step subcommands let you run each piece independently.

A maintainer can provide more detail if needed.

worktrunk-bot avatar Mar 10 '26 19:03 worktrunk-bot

what docs would have made this easier?

max-sixty avatar Mar 10 '26 19:03 max-sixty