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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
720
未経験者がAndroidアプリをリリースするまで
scubism
0
140
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
160
REVEAL.JSをちょっとだけ使ってみた
scubism
0
270
忙しい人のための仮想通貨
scubism
0
120
サーバ作業の注意コマンド
scubism
0
140
最近勉強してること、次にやりたいこと
scubism
0
120
FOOD TECH
scubism
0
73
Firebase(Realtime Database)について
scubism
0
130
Other Decks in Technology
See All in Technology
【Λ(らむだ)】最近のアプデ情報 / RPALT20260318
lambda
0
120
アーキテクチャモダナイゼーションを実現する組織
satohjohn
1
1.1k
めちゃくちゃ開発するQAエンジニアになって感じたメリットとこれからの課題感
ryuhei0000yamamoto
0
180
Claude Code 2026年 最新アップデート
oikon48
14
11k
GCASアップデート(202601-202603)
techniczna
0
240
スケールアップ企業でQA組織が機能し続けるための組織設計と仕組み〜ボトムアップとトップダウンを両輪としたアプローチ〜
tarappo
3
260
The Rise of Browser Automation: AI-Powered Web Interaction in 2026
marcthompson_seo
0
120
VLAモデル構築のための AIロボット向け模倣学習キット
kmatsuiugo
0
300
Phase01_AI座学_基礎
overflowinc
0
150
Claude Code のコード品質がばらつくので AI に品質保証させる仕組みを作った話 / A story about building a mechanism to have AI ensure quality, because the code quality from Claude Code was inconsistent
nrslib
13
8.7k
CyberAgentの生成AI戦略 〜変わるものと変わらないもの〜
katayan
0
280
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
410
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
91
How to build a perfect <img>
jonoalderson
1
5.3k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
480
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
The SEO Collaboration Effect
kristinabergwall1
0
400
AI: The stuff that nobody shows you
jnunemaker
PRO
3
460
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
130
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
150
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Ruling the World: When Life Gets Gamed
codingconduct
0
180
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
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}'