GIT DEPLOYMENT SCRIPT

$ pwd
/home/o/ooobigs/icases/public_html
$ git config --global user.email "git@icases.ru"
$ git config --global user.name "git@icases.ru"
$ git config --global --list
user.email=git@icases.ru
user.name=git@icases.ru
$ git config core.filemode false
fatal: not in a git directory
$ whoami
ooobigs__icases__7z
$ git status
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git add --all
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git commit -m "Changes on production"
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git pull origin master
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git checkout --theirs .
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git commit -am "Remote Conflict"
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git push origin master
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git submodule sync
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git submodule update
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ git submodule status
fatal: detected dubious ownership in repository at '/home/o/ooobigs/icases/public_html'
To add an exception for this directory, call:

git config --global --add safe.directory /home/o/ooobigs/icases/public_html
$ touch execafterdeploy.php
$ cat execafterdeploy.php