reverter as alterações instáveis git
git checkout -- path/to/file/to/revert
esquecer as alterações 'unstaged' git
#For all unstaged files in current working directory use:
git checkout -- .
#For a specific file use:
git checkout -- path/to/file/to/revert
persistir as alterações 'unstaged' para um novo ramo
git checkout -b new_branch_name
git apagar as alterações
git clean -df
git checkout -- .
git apagar os ficheiros 'unstaged'
git clean -df