tips icon indicating copy to clipboard operation
tips copied to clipboard

git checkout -- <file_name> is incorrect

Open ediso74 opened this issue 6 years ago • 3 comments

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

ediso74 avatar Aug 07 '19 02:08 ediso74

is this issue is open? ..I want to contribute on this

akanksharai001 avatar Jun 30 '21 06:06 akanksharai001

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 GitHubhttps://github.com/git-tips/tips/issues/177#issuecomment-871126847, or unsubscribehttps://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.comhttps://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link

ediso74 avatar Jun 30 '21 10:06 ediso74

Added a PR for this https://github.com/git-tips/tips/pull/215 @ediso74 kindly validate

arnabnandy7 avatar Apr 06 '23 05:04 arnabnandy7