-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 -- <file_name> is incorrect #177
Comments
is this issue is open? ..I want to contribute on this |
no clue
Regards,
Ed
…________________________________
From: akanksharai001 ***@***.***>
Sent: Wednesday, June 30, 2021 2:16 AM
To: git-tips/tips ***@***.***>
Cc: Edward Croft ***@***.***>; Author ***@***.***>
Subject: Re: [git-tips/tips] git checkout -- <file_name> is incorrect (#177)
is this issue is open ..I want to contribute on this
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#177 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACEBERBDMRZVLADO3NBQECTTVKZDPANCNFSM4IJ3XDJA>.
[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
|
arnabnandy7
added a commit
to arnabnandy7/tips
that referenced
this issue
Apr 6, 2023
hemanth
added a commit
that referenced
this issue
May 2, 2023
Fix:git checkout -- <file_name> is incorrect #177
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently:
Undo local changes with the last content in head
git checkout -- <file_name>
Should be:
Undo local changes with the content in index(staging)
git checkout -- <file_name>
Reference: https://git-scm.com/docs/git-checkout
Examples: git checkout hello.c
restore hello.c from the index
The text was updated successfully, but these errors were encountered: