Skip to main content

split

split | spl

split a commit into smaller commits

Prompt for hunks to be selected until exhausted. Each selection of hunks will form a separate commit, in order from parent to child: the first selection will form the first commit, the second selection will form the second commit, and so on.

Operates on the current revision by default. Use --rev to split a given commit instead.

arguments

shortnamefullnamedefaultdescription
-r--revrevision to split
--no-rebasefalsedon't rebase descendants after split
-m--messageuse text as commit message
-l--logfileread commit message from file
-d--daterecord the specified date as commit date
-u--userrecord the specified user as committer