i didnt added a file by mistake git reset code example Example: unstage staged files git git reset HEAD file_path