how to remove a file from stage code example Example: remove file from stage git git rm --cached <file>