Ok, this is how it looks. If everything is ok, I'm sending it to the ML >From 262bdfb5cc84fec7c9b74dc92bb604f9d168ef9a Mon Sep 17 00:00:00 2001 From: Alexander Nestorov <alexandernst@xxxxxxxxx> Date: Wed, 19 Jun 2013 09:55:42 +0200 Subject: [PATCH] Add example for reseting based on content changes instead of stat changes --- Documentation/git-reset.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt index a404b47..da639e9 100644 --- a/Documentation/git-reset.txt +++ b/Documentation/git-reset.txt @@ -289,6 +289,18 @@ $ git reset --keep start <3> <3> But you can use "reset --keep" to remove the unwanted commit after you switched to "branch2". +Reset only files who's content changed (instead of stat information):: ++ +------------ +$ git update-index --refresh <1> +$ git reset --hard <2> +------------ ++ +<1> Make Git realize which files actually changed instead of +checking out all files whether their content changed or only +their mtime changed. +<2> Now git reset --hard will checkout only the files that +actually changed. DISCUSSION ---------- -- 1.8.1.msysgit.1 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html