Try git reset --patch filename; this should do the opposite of git add --patch, according to the documentation. The short form -p also works for both commands.
Try git reset --patch filename; this should do the opposite of git add --patch, according to the documentation. The short form -p also works for both commands.