You probably already use git for source control and are probably very familiar with
Perhaps you haven’t yet discovered a very simple way to keep your commits small and meaningful…
--patch option to
git add and git will split your files into ‘hunks’ and present a diff for each hunk, one at a time with various options:
y - stage this hunk
git add -p in this way allows you to create small, sensible commits that are very focused. Additionally, it gives you an opportunity to self-review your changes as you add, win-win!
Senior Software Engineer