git unstage file from git add code example Example: unstage staged files git git reset HEAD file_path