本帖最後由 hihihi123hk 於 2017-7-10 21:18 編輯
如果server 我直接改 code, push 上 git, 之後再由developer's machine pull to local workcopy , 咁得唔得 ...
二師兄 發表於 2017-7-10 11:45 
以你例子
Server Push 完 ,同一條 Branch 其它人如果未 Pull 一定唔可以 Push ( -f 除外)
正常識用 Git 嘅人就算唔知有 Changes ,佢地見到自己唔係 HEAD Push 唔到都會做 pull --rebase 之後再 push
唔識用 Git 嘅人 有機會閉眼用咗 pull ,然後 git 會自動幫你 Merge 自己(Master merge master),若過咁樣再 Push 的話, 個 git history 會非常核突
不過正路
開 Hotfix branch 直Push , 再係 Web GUI 開 Merge Request 會比較合理, 啲 Git hisotry 亦會靚仔啲
via HKEPC Ionic Reader v1.7.0 - iPhone |