2012年3月8日 星期四

Git的自我認知

這是目前剛學Git的自我認知

DL:
Source code init

Member:(第一次)
1. 下載
。git clone gitosis@ip:projcet_nam
。git checkout -b develop -t origin/.../.../develop (下載remote develop到local)
。git flow init
2. 用feature開發
。git checkout develop
。git flow feature start branch_name
3. 上傳
。git flow feature publish branch_name (上傳remote)

DL:
1. 同步
。git pull --all (與remote同步)
2. 下載
。git flow feature track remote_feature_name (下載remote branch到local)
。test有無問題
3. 合併 & 上傳
。git flow feature finish branch_name
。git push (更新remote)
------------------------------------------------------

DL Release:
。git checkout develop
。git flow release start release_version
。test有無問題,有問題,從此branch改
。fit flow release finish release_version (寫目的、日期,會自動打tag)
。git push
。git push origin tag_name (上傳tag)

沒有留言:

張貼留言