If you’ve ever found yourself in a situation where you’re working on multiple code changes at once and want to split them across multiple Git commits (or simply not commit parts of it), git add -p
will let you interactively specify separate parts of the file to be committed.