how to unstage all files in git but keep changes code example Example: git unstage file for commit git reset myfilename.txt