git unstage file from add code example Example 1: unstage staged files git git reset HEAD file_path Example 2: git unstage a file $ git reset -- README