Назад в меню
  • Главная

GIT DEPLOYMENT SCRIPT

$ pwd
/home/sites/wline.by/www
$ git config --global user.email "koval@francysk.com"
$ git config --global user.name "WLINE"
$ git config --global --list
user.email=koval@francysk.com
user.name=WLINE
$ git config core.filemode false
$ whoami
wline
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: exchange.log

no changes added to commit (use "git add" and/or "git commit -a")
$ git add --all
$ git commit -m "Changes on production"
[master c6b730c] Changes on production
1 file changed, 47 insertions(+)
$ git pull origin master
From bitbucket.org:threeducks/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
To git@bitbucket.org:threeducks/git.wline.by.git
64e070d..c6b730c master -> master
$ git submodule sync
$ git submodule update
$ git submodule status