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