Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

check git status

git status [<options>…​] [--] [<pathspec>…​]
Comment

PREVIOUS NEXT
Code Example
Shell :: changed files git 
Shell :: not a git repository after clone 
Shell :: umount device is busy 
Shell :: see wifi password 
Shell :: linux change directoryyy 
Shell :: export environment variable from bash script 
Shell :: setup mongodb locally on centos 8 
Shell :: bash $! command 
Shell :: delete github branch 
Shell :: Unit Tests 
Shell :: dev/kvm not found 
Shell :: how to push to a new branch in gitlab 
Shell :: how to compare a character to uppercase in bash script 
Shell :: install bottle 
Shell :: how to change git default branch name 
Shell :: exit django shell 
Shell :: cast audio to google home mini from pc linux 
Shell :: scripting sobre ficheros 
Shell :: sharegate powershell exclude file type 
Shell :: composer install delete from parameters.yml symfony 3 
Php :: default time zone india php 
Php :: php start session if not started 
Php :: php file exist 
Php :: timestamp false in laravel 
Php :: get full url php 
Php :: php convert string to date 
Php :: php time a script 
Php :: store image in public folder laravel 8 
Php :: php reading a file line by line 
Php :: grep only in php files 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =