Git Workflows 讀書會 - 行前準備

最後編輯:2015-06-25 建立:2015-06-11 歷史紀錄

 

陳幸延[[ Index ]]

 

--------

 

Git Workflows and Tutorials | Atlassian Git Tutorial

https://www.atlassian.com/git/tutorials/comparing-workflows/

 

--------

 

Q: commit 時沒有先 pull 而造成 conflict

RJ: 先 pull 解 conflict,merge 後再 push 上去

 

 

在本機或遠端使用 ssh 協定做 git 倉庫 ,只存放 .git

  • $ ssh user@host git init --bare /path/to/repo.git

 

 

Feature Branch Workflow

 

feature branch 命名

  • animated-menu-items
  • issue-#1061

 

RJ: 功能較不同的 feature 再開不同 branch

 

Carl: Git 鼓勵常開 branch 常 merge

Carl: 臨時的或 feature branch 應該在兩天內 merge 回來,不然可能是有其他問題

 

common conventions:

  • branch off: develop
  • merge into: master
  • ......

 

 

CI - Continuous Integration

CD - Continuous Delivery

 

 

難易度 (難->簡單)

Git flow -> Github flow -> Gitlab flow

 

WANG S參考: