how to remove git files which have been added but not yet committed code example Example: unstage staged files git git reset HEAD file_path