Git Flow 讀書會 - 第 1 週

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

CARL SJun/18/2015

« 回首頁 | 第 2 週

 

    CARL S討論範圍

CARL SGit Workflows and Tutorials

  • Centralized Workflow
  • Feature Branch Workflow

 

    CARL S預定進度

CARL SA successful Git branching model

 

陳幸延main branches

  • master
  • develop

 

origin/master -> production-ready

origin/develop -> nightly builds

 

三種常用不同特性的 branch

  • Feature branches
  • Release branches
  • Hotfix branches

 

    CARL S回家作業

CARL S讀完下列內容:

  • ROBERT Wgit init
  • git init <directory>
  • ssh <user>@<host>
  • cd path/above/repo
  • git init --bare my-project.git
  • git clone <repo> # Ex: git clone ssh://<user>@<host>/<path>/<project>.git
  • git clone <repo> <directory>
  • git config [--global] user.name <name> | user.email <email>
  • git config --global alias.<alias-name> <git-command>
  • git config --system core.editor <editor>
  • git config [--global] --edit
  • <repo>/.git/config
  • ~/.gitconfig
  • $(prefix)/etc/gitconfig
  • ROBERT Wgit remote [-v]
  • git remote add <name> <url>
  • # URL Ex.: http://<host>/<path>/<repo>.git
  • # ssh://<user>@<host>/<path>/<repo>.git
  • git remote rm <name>
  • git remote rename <old-name> <new-name>
  • git fetch <remote> [<branch>]
  • git branch -r
  • git pull [--rebase] <remote>
  • git config --global branch.autosetuprebase always
  • git push <remote> <branch>
  • git push <remote> --force
  • git push <remote> --all
  • git push <remote> --tags

 

    CARL S心得筆記

CARL SCOSCUP 2015 Workshop - Git Workflows

 

Git 工作流程 (workflow) 相當於程式語言開發框架 (framework)。

 

中央集權 (Centralized Workflow) 就像使用 FTP 或 Dropbox 編輯 Word 文件。

 

feature branch 不影響主線任務,中途可存檔,下次再繼續。

 

merge 記錄必須有意義,否則建議 rebase,git graph 才會容易追蹤。

 

功能一開始就要切夠細,feature branch 一般只能留 2 小時至 2 天不等。

 

陳幸延Facebook 討論串

YGHOST Yhttps://www.facebook.com/groups/hackingday/permalink/954829101205755/

 

    CARL S活動簽到

BRUCE TBruce Tsai

CARL SCarl Su

Carol Huang

Clyde Wu

Robert D. Wei

Rudiger Peng

Shawn Lin

JUNG WSnowWolf725

WANG SWang Chen Shu

CARL S陳幸延