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
100
複数会社複数リポジトリでのソース管理
S-cubism
November 17, 2017
Tweet
Share
More Decks by S-cubism
See All by S-cubism
WSLでreactの開発環境作った話
scubism
0
670
未経験者がAndroidアプリをリリースするまで
scubism
0
120
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
150
REVEAL.JSをちょっとだけ使ってみた
scubism
0
260
忙しい人のための仮想通貨
scubism
0
100
サーバ作業の注意コマンド
scubism
0
120
最近勉強してること、次にやりたいこと
scubism
0
110
FOOD TECH
scubism
0
66
Firebase(Realtime Database)について
scubism
0
130
Other Decks in Technology
See All in Technology
Tech-Verse 2025 Keynote
lycorptech_jp
PRO
0
220
プロダクトエンジニアリング組織への歩み、その現在地 / Our journey to becoming a product engineering organization
hiro_torii
0
130
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
190
監視のこれまでとこれから/sakura monitoring seminar 2025
fujiwara3
11
3.9k
Witchcraft for Memory
pocke
1
430
Github Copilot エージェントモードで試してみた
ochtum
0
110
AIとともに進化するエンジニアリング / Engineering-Evolving-with-AI_final.pdf
lycorptech_jp
PRO
0
110
Node-REDのFunctionノードでMCPサーバーの実装を試してみた / Node-RED × MCP 勉強会 vol.1
you
PRO
0
120
エンジニア向け技術スタック情報
kauche
1
270
AWS テクニカルサポートとエンドカスタマーの中間地点から見えるより良いサポートの活用方法
kazzpapa3
2
550
Javaで作る RAGを活用した Q&Aアプリケーション
recruitengineers
PRO
1
120
PHPでWebブラウザのレンダリングエンジンを実装する
dip_tech
PRO
0
210
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
53
7.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
Scaling GitHub
holman
459
140k
Navigating Team Friction
lara
187
15k
Documentation Writing (for coders)
carmenintech
72
4.9k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.5k
Thoughts on Productivity
jonyablonski
69
4.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
330
24k
The Pragmatic Product Professional
lauravandoore
35
6.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
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}'