git diff between 2 revisions included

I’m doing a :

git diff --diff-filter=AM --name-only 59ade6e..c1fc4d8

The 59ade6e hash is a commit where I added all my files (my first commit).

  • save old git repository versions
  • Git number of commits per author on all branches
  • Find date for not dated commit?
  • git won't commit changes to files already in index (preserving permissions: operation not supported)
  • (git): How to bring specific commit from upstream branch?
  • Merging 2 branches together in GIT
  • But when I execute my command it seems that it doesn’t contain these added files. How can really include my hash revision to this diff ?

  • git pull doesn't actually restore my missing files from remote
  • Code repository for specific requirements - can Git offer 'small downloads'?
  • Git ignore push only
  • Custom builds of jQueryUI
  • Git submodule checkout error: “fatal: reference is not a tree”
  • Does git clone work through NTLM proxies?
  • 2 Solutions collect form web for “git diff between 2 revisions included”

    If 59ade6e is your root commit, you are probably looking for this command:

    git ls-tree --name-only -r 59ade6e

    Use the ~1 notation:

    git diff --diff-filter=AM --name-only 59ade6e~1..c1fc4d8

    This will do the diff between the commit previous to 59ade6e and c1fc4d8

    Git Baby is a git and github fan, let's start git clone.