Why not git reading the added file?

I read an article that said I was adding a file and putting it in my path. Not knowing what the author meant along the way, I just put it in my root directory.

Trying to run 'git diffall', git says diffall is not a command, any ideas? Thanks in advance.

A detailed fragment of the article:

Enter the following code into a file with a name git-diffalland put it in your path (I put it in >…/my-git-install-dir/cmd/)

#!/bin/sh
git diff --name-only "$@" | while read filename; do
git difftool "$@" --no-prompt "$filename" &
done

And run it in git (with the usual diff input options), for example:

git diffall git diffall HEAD

+4
source share
1 answer

"" - , . , echo $PATH . script .

+2

All Articles