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
Git submodule
Search
Oursky Limited
December 15, 2014
Programming
0
120
Git submodule
Oursky Limited
December 15, 2014
Tweet
Share
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
430
SSH Can
oursky
1
250
HTTP/2
oursky
0
290
watchOS2
oursky
0
220
Common QA issues
oursky
0
150
Complex is better than complicated
oursky
0
230
Clean code again
oursky
3
310
KiriKiri x O2 x NVLMarker
oursky
0
160
Flux + React
oursky
1
330
Other Decks in Programming
See All in Programming
Ruby Function Composition
bkuhlmann
1
330
Implementing Design Systems in Swift
seyfoyun
0
340
Let's learn code review
riofujimon
2
550
Code Reviews
bkuhlmann
4
890
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
Next.js App Router
quramy
6
450
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
9
4.2k
try! Swift Tokyo 2024 参加報告 / try! Swift Tokyo 2024 Report
hironytic
0
210
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
920
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
660
Fast JSX: Don't clone props object #28768
yossydev
1
150
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
How GitHub (no longer) Works
holman
305
140k
Rebuilding a faster, lazier Slack
samanthasiow
74
8.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
245
20k
Rails Girls Zürich Keynote
gr2m
91
13k
A Tale of Four Properties
chriscoyier
152
22k
Learning to Love Humans: Emotional Interface Design
aarron
267
39k
Side Projects
sachag
451
41k
GraphQLとの向き合い方2022年版
quramy
33
12k
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
Why Our Code Smells
bkeepers
PRO
331
56k
Transcript
Git submodule Android as an example Dec 2014, Rick Mak
Situation • I want to do a Swipe menu on
Android • I find a repos do what I want at Github • But the repos don’t publish on maven (or other hosted package management platform) • Or want to use a specific fork/commit
One of the solution • Copy the project into libs
or SupportProjects • Copy the jar
Pros and cons • git clone and go • Accessible
and can easily modify the plugins • Mixed up lib and App code • Difficult to update the library
Use git submodule • Smaller main repos • Maintain the
reusability of the module • Separation of concern, Application vs module • Contribute back of Open Source project • Upgrade of module become easy
How submodule look like
Actual usage • git clone
[email protected]
:oursky/project.git • Add • git
submodule add Path
[email protected]
:oursky/module.git • Checkout • git submodule update --init --recursive
How many travis script we have now?
Idiom • Fork to oursky • Branch by project name