From 7b8299d947588c76998d95b7d89fef770441c40d Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Mon, 24 Dec 2018 19:55:59 +0100 Subject: [PATCH] ajout exemple pour avoir un diff en fonction d'une date --- HowtoGit.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/HowtoGit.md b/HowtoGit.md index c31a2967..2fcfda7e 100644 --- a/HowtoGit.md +++ b/HowtoGit.md @@ -407,6 +407,13 @@ Voir les modifications en mode "mots" plutôt qu'en mode "ligne" (très pratique $ git diff --word-diff ~~~ +Voir les modifications depuis un certain temps sur un dépôt complet ou sur un fichier précis : + +~~~ +$ git diff HEAD 'HEAD@{3 hours ago}' +$ git diff HEAD 'HEAD@{3 weeks ago}' -- foo/bar.txt +~~~ + ### git pull/fetch