DEV Community

Discussion on: Five Git commands I started using that might be helpful to you

Collapse
 
digianpaul profile image
Paul DiGian

The most enlighting command I find out not so long ago is git add -p ...then whatever... it let you add single chunks of files to stage areas.

It is a godsend when working on complex problems. You can add related chunks in the same commit between files. So commits are still atomic and related to a single change.