I have an assignment to count all the changes from all the files from a git open-source project. I know that if I use:
git log --pretty=oneline <filename> | wc -l
I will get the number of changes of that file ( I use git bash on Windows 10)
My idea is to use
find .
and to redirect the output to the git command. How can I do the redirecting? I tried :
$ find . > git log --pretty=online | wc -l
0
find: unknown predicate `--pretty=online'
and
$ find . | git log --pretty=online | wc -l
fatal: invalid --pretty format: online
0