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
$ whoami
ooobigs__icases__7z
$ git status
On branch master
Your branch is ahead of 'origin/master' by 27 commits.
(use "git push" to publish your local commits)

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: bitrix/js/yandexmarketlab.delivery/change.txt
modified: local/modules/webteam/feed/searcherry.yml

no changes added to commit (use "git add" and/or "git commit -a")
$ git add --all
warning: in the working copy of 'local/modules/webteam/feed/searcherry.yml', LF will be replaced by CRLF the next time Git touches it
$ git commit -m "Changes on production"
[master efe484f9] Changes on production
2 files changed, 573 insertions(+), 466 deletions(-)
$ git pull origin master
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:46OSHA1Rmj8E8ERTC6xkNcmGOw9oFxYr0WF6zWW8l1E.
Please contact your system administrator.
Add correct host key in /home/o/ooobigs/icases/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/o/ooobigs/icases/.ssh/known_hosts:1
Host key for bitbucket.org has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
$ git checkout --theirs .
Updated 0 paths from the index
$ git commit -am "Remote Conflict"
On branch master
Your branch is ahead of 'origin/master' by 28 commits.
(use "git push" to publish your local commits)

nothing to commit, working tree clean
$ git push origin master
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:46OSHA1Rmj8E8ERTC6xkNcmGOw9oFxYr0WF6zWW8l1E.
Please contact your system administrator.
Add correct host key in /home/o/ooobigs/icases/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/o/ooobigs/icases/.ssh/known_hosts:1
Host key for bitbucket.org has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
$ git submodule sync
$ git submodule update
$ git submodule status
$ touch execafterdeploy.php
$ cat execafterdeploy.php