> Both the local and the server have git installed. Ip and path have
> both been masked.
>
> Password:
> [xxx.xx.xx.xx] executing command
> ** [out :: xxx.xx.xx.xx] sh: git: command not found
> ** [out :: xxx.xx.xx.xx] sh: git: command not found
> command finished in 825ms
> failed: "sh -c 'cd /path/has/been/masked; git fetch origin; git reset
> --hard origin/master'" on xxx.xx.xx.xx
>
> now i can log onto the server via ssh and run the "sh -c 'cd /path/has/
> been/masked; git fetch origin; git reset --hard origin/master'"
> command without issues.
----
because you get an environment with a path
# which git
/usr/bin/git
change your 'git' commands to the full path /usr/bin/git (or adjust if your copy if git is installed somewhere else) and you won't get the command not found.
Craig