Git descartar cambios por etapas

Ejemplos de código

2
0

git descartar cambios

git checkout .
1
0

git descartar cambios por etapas

git reset HEAD
git checkout .
0
0

revertir cambios no escalonados git

git checkout -- .
0
0

git descartar cambios

Undoing the changes in the working directory
Use the checkout command in order to checkout the repository’s version.

RUN:
git checkout hello.html

En otros idiomas

Esta página está en otros idiomas

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