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