git add -p

Interactively stage file changes

This command allows developers to selectively stage parts of files before committing, by opening a patch view where changes can be added (y), skipped (n), decided later (s), or edited (e).

This patch mode helps in breaking down a large set of changes into smaller commits, improving commit clarity and project history.

Sign in to enable bookmarking, reminders, progress-tracking and more...

Sign in to enable bookmarking, reminders, progress-tracking and more...

Sign in to enable bookmarking, reminders, progress-tracking and more...