Is it possible to do an "git status" and output the result into an echo? Or send the output as email?
I guess the email-thing is no problem but I stuck doing an echo.
What I got
clear
output="$(git status)"
echo output
But ... yeah, it won't work and I searched certain examples but they lead always ino a git status if,. and i need the output :( Is there way simple way to get this done
And, how to handle if this should be called on a remote system:
ssh ${SSHUSER}@${LIVE_HOST} << EOF
...
EOF