📜  if git status - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:20.733000             🧑  作者: Mango

代码示例1
if [[ -z $(git status -s) ]]
then
  echo "tree is clean"
else
  echo "tree is dirty, please commit changes before running this"
  exit
fi