Git Cheatsheet
Written
git rev-parse --show-toplevelprints out the root directory of the repogit restore -p <file>can restore chunks selectively and will ask you whether or not to revert each chunk.git add -p <file>does the same, but for adding