LoginSignup
1

More than 5 years have passed since last update.

【第3回】 GitFlow GitHubFlowについて

Last updated at Posted at 2018-11-10

GitFlow、GitHubFlowとは?

開発するにあたって、どのようなプロセスで運用していこう!ってのがあるんですが、それがGitFlow、GitHubFlowです。(超ざっくり言うと)

基本的には以下の資料を参考にしました。
https://qiita.com/tlta-bkhn/items/fc485a66dbe48ec3b919
http://komaken.me/blog/2013/09/09/git-flowとgithub-flowざっくりまとめ/

Gitflowについて

branch 用途 ざっくり表現
master リリースされたブランチ (完成品)
develop 開発中のブランチ (試作品)
feature branches developを機能毎に分けたブランチ (試作品の部品)
release branch 評価用のブランチ (本番環境の評価ベンチ)
hotfixies バグ修正用等のブランチ (緊急対応)

その他のコマンド(紹介)

Tagについて

どの機能を実装しているかを明示するタグ

【git tagのコマンド】
https://qiita.com/growsic/items/ed67e03fda5ab7ef9d08

git tag タグ名
git tag -a タグ名 -m 'タグのコメント'

困ったときのコマンド

git reset --soft タグ名

git reset --hard もあるよ。

編集中に役立つコマンド

git stash
git cherry-pick

おわりに

Gitの基本的な内容は理解できたと思います。
ここまでできれば、調べながらGitを使いこなす実力はついています。

興味がある方は、Gitの仕組みを覗いてみるといいかもしれません。
わかりやすかったページリンク

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1