Comment by natbennett

5 hours ago

In the case of a newly committed file you can add just the file with

git add . -N

And then review the text itself as part of the git add -p workflow

TIL about git add -N / --intent-to-add :

  git add --intent-to-add .
  git diff
  git add -p .

  ## To then reset and keep changes
  ## these are equivalent:
  # git reset .
  # git reset --mixed .