We've all been there: you made five unrelated debugging changes in one file and now you only want to commit two of them, leaving the others unstaged. Instead of committing everything or manually reverting, try running git add -p (or git add --patch). This fantastic command steps you through every 'hunk' (block of changes) in your modified files, asking you if you want to stage *just that block*. It gives you granular control over exactly what goes into your commit, ensuring your commit history stays clean, focused, and reviewable.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)