git add everything except "png" code example Example: git add everything except git add -u git reset -- main/dontcheckmein.txt