GIT DEPLOYMENT SCRIPT

$ pwd
/home/bitrix/www
$ git config --global user.email "koval@francysk.com"
$ git config --global user.name "FRANCYSK DEVELOPER"
$ git config --global --list
user.email=koval@francysk.com
user.name=FRANCYSK DEVELOPER
$ git config core.filemode false
$ whoami
bitrix
$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: local/components/sh/catalogProducts/component.php
# modified: local/components/sh/catalogProducts/itemTemplate.php
# modified: local/components/sh/catalogProducts/templates/.default/cart.php
# modified: local/include/custom_users/general/copyr.php
# modified: local/php_interface/init.php
#
no changes added to commit (use "git add" and/or "git commit -a")
$ git add --all
$ git commit -m "Changes on production"
[master 410ff6d] Changes on production
5 files changed, 13 insertions(+), 10 deletions(-)
$ git pull origin master
From bitbucket.org:francysk/git.wline.by
* branch master -> FETCH_HEAD
Already up-to-date.
$ git checkout --theirs .
$ git commit -am "Update on server"
# On branch master
nothing to commit (working directory clean)
$ git push origin master
remote: Checking connectivity: 2
remote: Checking connectivity: 17, done.
To git@bitbucket.org:francysk/git.wline.by.git
4d64d3d..410ff6d master -> master
$ git submodule sync
$ git submodule update
$ git submodule status
Товар добавлен в корзину Оформить заказ
Товар удален из корзины