GIT DEPLOYMENT SCRIPT
$ pwd
/home/belincas/public_html
$ git config --global user.email "git@belincasgroup.by"
$ git config --global user.name "belincas server"
$ git config --global --list
user.email=git@belincasgroup.by
user.name=belincas server
$ git config core.filemode false
$ whoami
belincas
$ git status
# On branch master
nothing to commit, working directory clean
$ git add --all
$ git commit -m "Changes on production"
# On branch master
nothing to commit, working directory clean
$ git pull origin master
From bitbucket.org:newsite/git.belinkas
* branch master -> FETCH_HEAD
Already up-to-date.
$ git checkout --theirs .
$ git commit -am "Remote Conflict"
# On branch master
nothing to commit, working directory clean
$ git push origin master
Everything up-to-date
$ git submodule sync
$ git submodule update
$ git submodule status
$ touch execafterdeploy.php
$ cat execafterdeploy.php