Unquoted semicolons are considered shell argument separators, quote them so the example works correctly. Signed-off-by: Douglas Fuller <douglas.fuller@xxxxxxxxx> --- Documentation/gitcredentials.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/gitcredentials.txt b/Documentation/gitcredentials.txt index 1814d2d23c..fb16c71cfe 100644 --- a/Documentation/gitcredentials.txt +++ b/Documentation/gitcredentials.txt @@ -229,7 +229,7 @@ foo --bar="whitespace arg" /path/to/my/helper --with-arguments # or you can specify your own shell snippet -!f() { echo "password=`cat $HOME/.secret`"; }; f +"!f() { echo password=`cat $HOME/.secret`; }; f" ---------------------------------------------------- Generally speaking, rule (3) above is the simplest for users to specify. -- 2.26.2