Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if git status

if [[ -z $(git status -s) ]]
then
  echo "tree is clean"
else
  echo "tree is dirty, please commit changes before running this"
  exit
fi
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #status
ADD COMMENT
Topic
Name
3+5 =