Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
Uploaded by
Maciej Lasyk
6,576 views
Git Submodules
A few words about git submodules and how to use it in the devops world.
Technology
◦
Read more
0
Save
Share
Embed
Embed presentation
Download
Downloaded 17 times
1
/ 15
2
/ 15
3
/ 15
4
/ 15
5
/ 15
6
/ 15
7
/ 15
8
/ 15
9
/ 15
10
/ 15
11
/ 15
12
/ 15
13
/ 15
14
/ 15
15
/ 15
More Related Content
PDF
[@NaukriEngineering] Git Basic Commands and Hacks
by
Naukri.com
PDF
20160921線上讀書會git教學
by
彥銘 黄
PPTX
GRUNT - The JavaScript Task Runner
by
Larry Nung
KEY
Yapc Asia 2009 ペパボでのPerlの使い方
by
hiboma
PDF
Git submodule
by
Olaf Alders
PPT
Recycling
by
guestd12f51
PPTX
Advanced Git: Functionality and Features
by
Brent Laster
PDF
10th php indonesia surabaya meetup
by
Taufan Aditya
[@NaukriEngineering] Git Basic Commands and Hacks
by
Naukri.com
20160921線上讀書會git教學
by
彥銘 黄
GRUNT - The JavaScript Task Runner
by
Larry Nung
Yapc Asia 2009 ペパボでのPerlの使い方
by
hiboma
Git submodule
by
Olaf Alders
Recycling
by
guestd12f51
Advanced Git: Functionality and Features
by
Brent Laster
10th php indonesia surabaya meetup
by
Taufan Aditya
More from Maciej Lasyk
PDF
Rundeck & Ansible
by
Maciej Lasyk
PDF
Docker 1.11
by
Maciej Lasyk
ODP
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
by
Maciej Lasyk
ODP
Co powinieneś wiedzieć na temat devops?f
by
Maciej Lasyk
ODP
"Containers do not contain"
by
Maciej Lasyk
ODP
Linux containers & Devops
by
Maciej Lasyk
PDF
Under the Dome (of failure driven pipeline)
by
Maciej Lasyk
PDF
Continuous Security in DevOps
by
Maciej Lasyk
ODP
About cultural change w/Devops
by
Maciej Lasyk
ODP
Orchestrating docker containers at scale (#DockerKRK edition)
by
Maciej Lasyk
ODP
Orchestrating docker containers at scale (PJUG edition)
by
Maciej Lasyk
PDF
Orchestrating Docker containers at scale
by
Maciej Lasyk
ODP
Ghost in the shell
by
Maciej Lasyk
ODP
Scaling and securing node.js apps
by
Maciej Lasyk
ODP
Node.js security
by
Maciej Lasyk
ODP
High Availability (HA) Explained - second edition
by
Maciej Lasyk
ODP
Monitoring with Nagios and Ganglia
by
Maciej Lasyk
PDF
Stop disabling SELinux!
by
Maciej Lasyk
ODP
RHEL/Fedora + Docker (and SELinux)
by
Maciej Lasyk
PDF
High Availability (HA) Explained
by
Maciej Lasyk
Rundeck & Ansible
by
Maciej Lasyk
Docker 1.11
by
Maciej Lasyk
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
by
Maciej Lasyk
Co powinieneś wiedzieć na temat devops?f
by
Maciej Lasyk
"Containers do not contain"
by
Maciej Lasyk
Linux containers & Devops
by
Maciej Lasyk
Under the Dome (of failure driven pipeline)
by
Maciej Lasyk
Continuous Security in DevOps
by
Maciej Lasyk
About cultural change w/Devops
by
Maciej Lasyk
Orchestrating docker containers at scale (#DockerKRK edition)
by
Maciej Lasyk
Orchestrating docker containers at scale (PJUG edition)
by
Maciej Lasyk
Orchestrating Docker containers at scale
by
Maciej Lasyk
Ghost in the shell
by
Maciej Lasyk
Scaling and securing node.js apps
by
Maciej Lasyk
Node.js security
by
Maciej Lasyk
High Availability (HA) Explained - second edition
by
Maciej Lasyk
Monitoring with Nagios and Ganglia
by
Maciej Lasyk
Stop disabling SELinux!
by
Maciej Lasyk
RHEL/Fedora + Docker (and SELinux)
by
Maciej Lasyk
High Availability (HA) Explained
by
Maciej Lasyk
Git Submodules
1.
1 Git submodules Devops Meetup Krk 20150617 Maciej Lasyk
2.
GIT submodules WTF? 2
3.
3 PL: moduły zależne
4.
4 git submodule add
<URL> <dirname> git status git diff --cached --submodule
5.
5 .gitmodules [submodule "ansible-piwik"] path =
ansible-piwik url = git@github.com:docent-net/ansible-piwik.git
6.
6 Cloning repos w/submodules? git clone <URL>
# just standard content without submodules data
7.
7 Cloning repos w/submodules? git submodule init git
sumobule update
8.
8 Cloning repos w/submodules? git clone --recursive
<URL>
9.
9 Update submodule code to the latest revision? # run in
submodule dir git fetch git merge <origin/master> # updates all submodules data # run from maindir git submodule update --remote
10.
10 Change submodule branch? .gitmodules ~/.git/config
11.
11 by default: detach HEAD state git checkout <branch> git
submodule update --remote merge
12.
12 Pushing changes? git push --recurse-submodules
13.
13 Removing submodule? # edit .gitmodules git
rm --cached <submodule-dir> # commit change
14.
14 foreach git submodule foreach
'git diff' git submodule foreach 'git pull'
15.
15 Thanks :) Maciej Lasyk @docentnet http://maciej.lasyk.info
Download