Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
複数会社複数リポジトリでのソース管理
Search
S-cubism
November 17, 2017
Technology
0
80
複数会社複数リポジトリでのソース管理
S-cubism
November 17, 2017
Tweet
Share
More Decks by S-cubism
See All by S-cubism
WSLでreactの開発環境作った話
scubism
0
610
未経験者がAndroidアプリをリリースするまで
scubism
0
85
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
130
REVEAL.JSをちょっとだけ使ってみた
scubism
0
240
忙しい人のための仮想通貨
scubism
0
81
サーバ作業の注意コマンド
scubism
0
92
最近勉強してること、次にやりたいこと
scubism
0
82
FOOD TECH
scubism
0
45
Firebase(Realtime Database)について
scubism
0
99
Other Decks in Technology
See All in Technology
Janus
bkuhlmann
0
490
元インフラエンジニアに成る / Human Resources to Human Relations
bobtani
2
740
WebアプリケーションにおけるPDOの使い方入門 / phpcon odawara 2024
meihei3
2
420
Garoon 開発チーム / Garoon development team
cybozuinsideout
PRO
1
2.9k
Databricks:『生成AI World Cup』のご案内
databricksjapan
1
130
"好き"との生活/Regularly update profile with GitHub Actions
judeeeee
0
150
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
320
【SORACOM UG】SIM Deep Dive セキュアエレメント編
soracom
PRO
0
250
入社後初めてのタスクでk8sアップグレードした話.pdf
kkato1
0
380
Postman v10リリース後を振り返る
nagix
0
120
テストプロセスで大事にしていること #jasstnano
makky_tyuyan
0
110
Databricksを活用してDELISH KITCHENのレシピレコメンドを開発した話
furu8
0
250
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
42
6.7k
Designing Experiences People Love
moore
135
23k
Producing Creativity
orderedlist
PRO
336
39k
Six Lessons from altMBA
skipperchong
19
3k
The MySQL Ecosystem @ GitHub 2015
samlambert
242
12k
YesSQL, Process and Tooling at Scale
rocio
162
13k
Large-scale JavaScript Application Architecture
addyosmani
503
110k
Typedesign – Prime Four
hannesfritz
36
2k
Optimizing for Happiness
mojombo
369
69k
Facilitating Awesome Meetings
lara
40
5.6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
272
13k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.4k
Transcript
複数リポジトリでの Git管理 開発1部 土田時生
運用状況 ・リリースが多い(2週間に1回) ・開発会社5社以上 ・gitリポジトリ4つ(さらに社内で2つ) ・メインサイト(アプリケーション) ・メインサイト(静的コンテンツ) ・別ドメインサイト(アプリケーション) ・別ドメインサイト(静的コンテンツ)
3か月間の開発期間 最新のリリース分を 取り込み続けなければならない。 課題
複数の開発案件をぶつけるので コンフリクトの嵐。 何よりコンフリクトしないコンフリクトがこわい。 ※同じ行を編集していないので、 git上はきれいに取り込まれるが、影響の範囲内) 例)変数名が変えられている 開発開始時と大幅に処理が変わっている 課題
・ただマージするのではなく、開発案件ごとに 取り込みプルリクエストを残す。 ・同じファイルを編集しているものをリスト化し 記録に残す。(セッション等別のファイルでの処理 に影響及ぼすのはもう仕方ない) 対応
git diff origin/branch1...origin/branch2 --diff-filter=M --name-only > diff1.txt && git diff
origin/branch2...origin/branch1 --diff-filter=M --name-only > diff2.txt && git diff origin/branch2..origin/branch1 --diff-filter=M --name-only > diff3.txt && grep -x -f diff3.txt <$(grep -x -f diff1.txt diff2.txt) > diff5.txt 1 3 2 branch1 branch2
よく使うコマンド ・git diff branch1..branch2 ・git diff branch1...branch2 ・git diff –diff-filter
・git cherry-pick ・git cherry-pick -m ・git remote –v ・git branch –vv ・git branch -vv | awk '1{n=3}/^*/{n=4}$n~/^¥[/{gsub(/¥[|¥]|:/,"");print $n}'