Git retourne un fichier

Exemples de code

3
0

git reset fichier spécifique

git checkout c5f567 -- file1/to/restore file2/to/restore
3
0

git réinitialise un fichier

git checkout HEAD -- my-file.txt
3
0

Comment puis-je réinitialiser ou rétablir un fichier à une révision spécifique?

git reset <commit hash> <filename>
2
0

git retourne un fichier

git checkout HEAD -- /directory/my-file.txt
0
0

annuler les modifications non échelonnées git

git checkout -- .
0
0

git revert commit pour un seul fichier

git checkout <commit_hash> path/to/file

Pages connexes

Pages d'exemples similaires

Dans d'autres langues

Cette page est dans d'autres langues

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