# bash check whether there are any staged changes in git git diff --cached --quiet && echo nostaged || echo somestaged