Esquecer as alterações 'unstaged' git

Exemplos de código

4
0

reverter as alterações instáveis git

git checkout -- path/to/file/to/revert
1
0

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
1
0

persistir as alterações 'unstaged' para um novo ramo

git checkout -b new_branch_name
1
0

git apagar as alterações

git clean -df
git checkout -- .
0
0

git apagar os ficheiros 'unstaged'

git clean -df

Em outros idiomas

Esta página está em outros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................