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