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
700
未経験者がAndroidアプリをリリースするまで
scubism
0
130
scubism_LT_20180223_細田謙二_イベントソーシング
scubism
0
160
REVEAL.JSをちょっとだけ使ってみた
scubism
0
260
忙しい人のための仮想通貨
scubism
0
110
サーバ作業の注意コマンド
scubism
0
130
最近勉強してること、次にやりたいこと
scubism
0
110
FOOD TECH
scubism
0
67
Firebase(Realtime Database)について
scubism
0
130
Other Decks in Technology
See All in Technology
Goに育てられ開発者向けセキュリティ事業を立ち上げた僕が今向き合う、AI × セキュリティの最前線 / Go Conference 2025
flatt_security
0
360
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
9.1k
生成AIで「お客様の声」を ストーリーに変える 新潮流「Generative ETL」
ishikawa_satoru
1
360
【Oracle Cloud ウェビナー】クラウド導入に「専用クラウド」という選択肢、Oracle AlloyとOCI Dedicated Region とは
oracle4engineer
PRO
3
120
AI時代だからこそ考える、僕らが本当につくりたいスクラムチーム / A Scrum Team we really want to create in this AI era
takaking22
7
3.9k
実装で解き明かす並行処理の歴史
zozotech
PRO
1
630
How to achieve interoperable digital identity across Asian countries
fujie
0
140
KMP の Swift export
kokihirokawa
0
340
多様な事業ドメインのクリエイターへ 価値を届けるための営みについて
massyuu
1
470
AI時代こそ求められる設計力- AWSクラウドデザインパターン3選で信頼性と拡張性を高める-
kenichirokimura
3
160
AWSにおけるTrend Vision Oneの効果について
shimak
0
140
PLaMo2シリーズのvLLM実装 / PFN LLM セミナー
pfn
PRO
2
1k
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Side Projects
sachag
455
43k
Rails Girls Zürich Keynote
gr2m
95
14k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
2.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
How STYLIGHT went responsive
nonsquared
100
5.8k
Being A Developer After 40
akosma
91
590k
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}'