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 :: reverse a django migration 
Shell :: vi replace 
Shell :: git rename working branch 
Shell :: maven homebrew 
Shell :: git prune local branches 
Shell :: interact with docker container shell 
Shell :: how to assign more than one ip address in linux 
Shell :: git reset uncommitted changes 
Shell :: switch branches in git 
Shell :: linux list recursive 
Shell :: delete ec2 from terraform 
Shell :: bash read options from file 
Shell :: backup ubuntu 22 
Shell :: get container config docker 
Shell :: how to install raspap 
Shell :: logitech g hub not installing windows 10 
Shell :: How To Make Log File On Batch Script 
Shell :: basic git commands 
Shell :: cp with folder structure 
Shell :: git revert to last commit on remote branch 
Shell :: chmod user to root 
Shell :: what is sudo in linux 
Shell :: git clone with branch name command 
Shell :: scaffold controller ef core 
Shell :: selenium run chhrome headless 
Shell :: change commit message after push 
Shell :: docker desktop for fedora 
Shell :: hide permission denied ~/.bash 
Shell :: git 3 way merge 
Shell :: github new repo 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =