LoginSignup
2
2

More than 5 years have passed since last update.

最低限のGit運用

Posted at

目的

  • 今までの現場ではSVNしか使った事が無いのでGitの運用方法が分からなかった。
  • プライベートでは使っていたがmasterしか使っておらず、Gitの良さを理解していなかった為、この機会に勉強しようと思った。

準備するもの

  • Githubのアカウント
  • Sourcetree

    やってみた

    とりあえずbranchを切る

  • master:リリース時のソースコードを管理するブランチ

  • develop:開発の主軸となるブランチ

  • feature:作業ブランチ。機能追加毎に作成する
    スクリーンショット 2019-01-24 0.36.03.png

featureブランチで作業(今回はファイル追加)を行い、コミット&プッシュを行う
スクリーンショット 2019-01-24 0.37.23.png

Githubにてfeatureからdevelopに対してpull requestを行う
スクリーンショット 2019-01-24 0.56.05.png

pull requestを承認する事でマージされる(今回は自作自演)
スクリーンショット 2019-01-24 0.56.25.png

developからmasterにマージする
スクリーンショット 2019-01-24 0.57.12.png

まとめ

とりあえず最低限の運用としてはこんな感じかな。
まだまだ学ぶ事はあるのでGitの勉強はちゃんとやっていきたい。

2
2
0

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
2
2