DEV Community

Discussion on: Split an existing git commit

Collapse
colinmtech profile image
Colin Morgan

git add --patch <filename> is also really useful if you only want to commit a subset of your changes to a file.

Git has all kinds of cool commands that aren't mentioned often.