# check that we have proper git information to automatically commit and push # git status -sb has the following format: ## master...upstream/master when tracking a remote branch GIT_STATUS=`git status -sb` GIT_STATUS_PARTS=${GIT_STATUS//##/} GIT_STATUS_PARTS=(${GIT_STATUS_PARTS//....