https://github.com/slankdev/gitstudy
for git study
https://github.com/slankdev/gitstudy
Last synced: about 2 months ago
JSON representation
for git study
- Host: GitHub
- URL: https://github.com/slankdev/gitstudy
- Owner: slankdev
- Created: 2019-01-02T14:26:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T15:03:20.000Z (over 7 years ago)
- Last Synced: 2025-10-08T22:50:05.949Z (6 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git Study
Branch構造は以下のようになっている
- master:
- 完全に動くものしか置かない
- hotfixはここに直接入れる.
- 子ブランチ
- develop:
- とりあえず動いた物をおく.
- 定期的にmasterのhotfixをmasterから取り込む.
- 定期的にmasterにPRする
- masterに非mergedな機能のhotfixはここに直接する.
- 子ブランチ
- feature-a:
- 機能Aを作る.
- developにPRする前にhotfixを取り込む
- feature-b:
- 機能Bを作る.
- developにPRする前にhotfixを取り込む
## 理想的なコミットツリー
頑張って以下の形を保ちたい. 誰もミスらなければ達成できる.
タイミングによって不都合でもなんとか修正する.
```
branc-name -----old---new
master ---- M1-------------------------M1.1------M2---
\ \ /
develop D1----------------D1.1------D1.2
\ /
feature-a A1---A2---A3
```
## origin/develop で origin/master の hotfix を反映させる
```
```