Can we input the git command output to another git command

My requirement is to fetch the list of folders, which got some modifications of the files after certain date.

I tried and got below commands from which I can get some details:

  • I've pushed successfully, but I got an error message “error: failed to push…” in git
  • how to prevent unpushed submodules in git
  • Git: A ton of blank lines showing up in diff when I haven't modified them
  • Why do i get “error: failed to push some refs”?
  • Using svn/git with Xcode
  • Different repositories for each module in intellij IDEA
  • This command lists the commits which are done after this date (2016-05-26):

    git log --date=short --after=2016-05-26 --pretty=format:"%h"



    This command lists the filename that is changed on this commit (5761f52):

    git show --pretty="format:" --name-only 5761f52



    Instead of checking after each commit, is there any way to fetch the list for the group of commits?

  • How to install git with Macports?
  • Best practice for maintaining updated Git binaries (Git by Git) on Mac OS X 10.5?
  • How to get changes done by me one commit back?
  • Git: moving submodules recursively (nested submodules)
  • Git-Tf Moving parts of a large Tfs Project
  • Git: After a three way merge, in what order are the commits displayed in git log?
  • 2 Solutions collect form web for “Can we input the git command output to another git command”

    Mureinik answer seems to be good for me. But if you disagree, you can use a loop in bash command line

    for commit in `git log --date=short --after=2016-05-26 --pretty=format:"%h"` 
    echo "====== Commit $commit is beeing analyzed ======";
    git show --pretty="format:" --name-only $commit;

    You can also pass --name-only to git diff. Assuming your ref log goes back far enough, you can just use:

    git diff --name-only master@{2016-05-26}
    Git Baby is a git and github fan, let's start git clone.