git modified file to unstage code example Example: git unstage file for commit git reset myfilename.txt