Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git checkout -- <filename> est mal décrit #154

Open
ElieGouzien opened this issue Oct 23, 2017 · 1 comment
Open

git checkout -- <filename> est mal décrit #154

ElieGouzien opened this issue Oct 23, 2017 · 1 comment

Comments

@ElieGouzien
Copy link

Bonjour,

git-guide/index.fr.html

Lines 189 to 190 in 2bb931f

<code>git checkout -- &lt;filename&gt;</code><br />
cela remplacera les changements dans votre arbre de travail avec le dernier contenu du HEAD. Les changements d&eacute;j&agrave; ajout&eacute;s &agrave; l'index, aussi bien les nouveaux fichiers, seront gard&eacute;s.

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 !

@chongtwo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants