how to unstage changes made by git add code example Example: unstage staged files git git reset HEAD file_path