git-guide icon indicating copy to clipboard operation
git-guide copied to clipboard

`git checkout -- <filename>` est mal décrit

Open ElieGouzien opened this issue 7 years ago • 1 comments

Bonjour,

https://github.com/rogerdudler/git-guide/blob/2bb931f1da3b91bf2b73590098335e40d8636727/index.fr.html#L189-L190 est un poil inexact ; git checkout -- <filename> récupère le fichier depuis l'index, et non le HEAD.

En cas de doute, voir la doc officielle.

J'ai pas regardé dans les autres langues.

Sinon bravo pour ce guide !

ElieGouzien avatar Oct 23 '17 16:10 ElieGouzien

This problem also appears in Chinese and English version. git checkout -- <filename> get file from Index not HEAD; while git checkout HEAD -- <filename> get file from HEAD

chongtwo avatar Jun 21 '19 06:06 chongtwo