git unstage all files without losing changes code example Example: unstage staged files git git reset HEAD file_path