Git
⼤大綱
建置
基礎
還原
遠端
協同開發
代碼審查
⾃自動化測試
持續整合
公司瓶頸
PHP Environment
建置
GitLab



CRLF or LF?
統⼀一程式碼撰寫⽅方式
Editorconfig
基礎
add
Status
.gitignore
Commit 

-m {{提交訊息}}

-a {{版本}}
還原
Log
Checkout
Revert
Reset
Ref: https://gitbook.tw/chapters/rewrite-
history/reset-revert-and-rebase.html
Tips
Directory處理理⽅方式
.gitignore
.gitkeep
遠端
Remote
Clone
Push
Pull
協同開發
Branch
Merge
Strategy
Rebase
代碼審查
// TODO
// REVIEW
// ??????
⾃自動化單元測試
測試伺服器是否部署成功
git bisect start HEAD v1.0

git bisect run test-error.sh
https://git-scm.com/book/zh-tw/v1/Git-
%E5%B7%A5%E5%85%B7-
%E4%BD%BF%E7%94%A8-Git-%E5%81%9A-
Debug
Continuous Integration

持續整合
公司瓶頸
沒有建置個⼈人開發環境
使⽤用vim及WinSCP
部署流程???
GitLab無法部署到客⼾戶端
…
PHP Environment
舊版

tar -zcvf RAMS2011.tar.gz 

--exclude=RAMS2011/logs 

--exclude=RAMS2011/zUploadFiles 

--exclude=RAMS2011/sessions 

--exclude=RAMS2013/zCheckDuplication 

RAMS2011
新版

http://203.70.68.189/waynewu/rams-aleph/tree/master