git how to remove al stagged and modified code example Example: git remove staged area $ git reset HEAD file # Or everything $ git reset HEAD .