git-guide
git-guide copied to clipboard
`git checkout -- <filename>` est mal décrit
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 !
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