how to unstage a file in git command line code example Example: git unstage file for commit git reset myfilename.txt