Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Question about removing changes from the index

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:46:06

Gustav Hållberg [off-list ref] writes:
I'm wondering if there's anyone who can recommend a smart way to
"reset" the index entry for individual files to the contents of HEAD,
in effect, removing any previous change between HEAD and the index
(for those files).
Isn't "git reset -- path" what you want? Or perhaps "git checkout HEAD
-- path" if you also want to reset the file content.

-- 
Matthieu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help