mistakenly staged the file how to remove it code example Example: remove staged files git reset HEAD -- .