command to unstage in git code example Example: git unstage file\ # unstage file before commit git rm --cached <file_name>