Commands
>_
but squash
Squash commits together.
Can be invoked in three ways:
- Using commit identifiers:
but squash <commit1> <commit2>orbut squash <commit1> <commit2> <commit3>...- Squashes all commits except the last into the last commit
- Using a commit range:
but squash <commit1>..<commit4>- Squashes all commits in the range into the last commit in the range
- Using a branch name:
but squash <branch>- Squashes all commits in the branch into the bottom-most commit
Usage: but squash [COMMITS] [OPTIONS]
Arguments
<COMMITS>— Commit identifiers, a range (commit1..commit2), or a branch name
Options
-d,--drop-message— Drop source commit messages and keep only the target commit's message-m,--message<MESSAGE>— Provide a new commit message for the resulting commit-i,--ai<AI>— Generate commit message using AI with optional user summary or instructions. Use --ai by itself or --ai="your instructions" (equals sign required for value)
Last updated on