git reset <path_to_file>fatal: ambiguous argument '<path_to_file>': unknown revision or path not in the working tree.Use '--' to separate paths from revisions
git reset -- <path_to_file>Unstaged changes after reset:M <path_to_file>
$ git add foo$ git status# On branch master# Changes to be committed:# (use "git reset HEAD <file>..." to unstage)## new file: foo## Untracked files:# (use "git add <file>..." to include in what will be committed)# [...]#
$ git status# On branch master# Untracked files:# (use "git add <file>..." to include in what will be committed)# [...]# foonothing added to commit but untracked files present (use "git add" to track)$