Enviar pesquisa
Carregar
Git Submodules
•
0 gostou
•
6,557 visualizações
Maciej Lasyk
Seguir
A few words about git submodules and how to use it in the devops world.
Leia menos
Leia mais
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 15
Baixar agora
Baixar para ler offline
Recomendados
[@NaukriEngineering] Git Basic Commands and Hacks
[@NaukriEngineering] Git Basic Commands and Hacks
Naukri.com
20160921線上讀書會git教學
20160921線上讀書會git教學
彥銘 黄
GRUNT - The JavaScript Task Runner
GRUNT - The JavaScript Task Runner
Larry Nung
Yapc Asia 2009 ペパボでのPerlの使い方
Yapc Asia 2009 ペパボでのPerlの使い方
hiboma
Working with multiple git repositories
Working with multiple git repositories
Julien Pivotto
Git submodule
Git submodule
Olaf Alders
Recycling
Recycling
guestd12f51
Linux HA anno 2014
Linux HA anno 2014
Julien Pivotto
Recomendados
[@NaukriEngineering] Git Basic Commands and Hacks
[@NaukriEngineering] Git Basic Commands and Hacks
Naukri.com
20160921線上讀書會git教學
20160921線上讀書會git教學
彥銘 黄
GRUNT - The JavaScript Task Runner
GRUNT - The JavaScript Task Runner
Larry Nung
Yapc Asia 2009 ペパボでのPerlの使い方
Yapc Asia 2009 ペパボでのPerlの使い方
hiboma
Working with multiple git repositories
Working with multiple git repositories
Julien Pivotto
Git submodule
Git submodule
Olaf Alders
Recycling
Recycling
guestd12f51
Linux HA anno 2014
Linux HA anno 2014
Julien Pivotto
Rundeck & Ansible
Rundeck & Ansible
Maciej Lasyk
Docker 1.11
Docker 1.11
Maciej Lasyk
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
Maciej Lasyk
Co powinieneś wiedzieć na temat devops?f
Co powinieneś wiedzieć na temat devops?f
Maciej Lasyk
"Containers do not contain"
"Containers do not contain"
Maciej Lasyk
Linux containers & Devops
Linux containers & Devops
Maciej Lasyk
Under the Dome (of failure driven pipeline)
Under the Dome (of failure driven pipeline)
Maciej Lasyk
Continuous Security in DevOps
Continuous Security in DevOps
Maciej Lasyk
About cultural change w/Devops
About cultural change w/Devops
Maciej Lasyk
Orchestrating docker containers at scale (#DockerKRK edition)
Orchestrating docker containers at scale (#DockerKRK edition)
Maciej Lasyk
Orchestrating docker containers at scale (PJUG edition)
Orchestrating docker containers at scale (PJUG edition)
Maciej Lasyk
Orchestrating Docker containers at scale
Orchestrating Docker containers at scale
Maciej Lasyk
Ghost in the shell
Ghost in the shell
Maciej Lasyk
Scaling and securing node.js apps
Scaling and securing node.js apps
Maciej Lasyk
Node.js security
Node.js security
Maciej Lasyk
High Availability (HA) Explained - second edition
High Availability (HA) Explained - second edition
Maciej Lasyk
Monitoring with Nagios and Ganglia
Monitoring with Nagios and Ganglia
Maciej Lasyk
Stop disabling SELinux!
Stop disabling SELinux!
Maciej Lasyk
RHEL/Fedora + Docker (and SELinux)
RHEL/Fedora + Docker (and SELinux)
Maciej Lasyk
High Availability (HA) Explained
High Availability (HA) Explained
Maciej Lasyk
Mais conteúdo relacionado
Mais de Maciej Lasyk
Rundeck & Ansible
Rundeck & Ansible
Maciej Lasyk
Docker 1.11
Docker 1.11
Maciej Lasyk
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
Maciej Lasyk
Co powinieneś wiedzieć na temat devops?f
Co powinieneś wiedzieć na temat devops?f
Maciej Lasyk
"Containers do not contain"
"Containers do not contain"
Maciej Lasyk
Linux containers & Devops
Linux containers & Devops
Maciej Lasyk
Under the Dome (of failure driven pipeline)
Under the Dome (of failure driven pipeline)
Maciej Lasyk
Continuous Security in DevOps
Continuous Security in DevOps
Maciej Lasyk
About cultural change w/Devops
About cultural change w/Devops
Maciej Lasyk
Orchestrating docker containers at scale (#DockerKRK edition)
Orchestrating docker containers at scale (#DockerKRK edition)
Maciej Lasyk
Orchestrating docker containers at scale (PJUG edition)
Orchestrating docker containers at scale (PJUG edition)
Maciej Lasyk
Orchestrating Docker containers at scale
Orchestrating Docker containers at scale
Maciej Lasyk
Ghost in the shell
Ghost in the shell
Maciej Lasyk
Scaling and securing node.js apps
Scaling and securing node.js apps
Maciej Lasyk
Node.js security
Node.js security
Maciej Lasyk
High Availability (HA) Explained - second edition
High Availability (HA) Explained - second edition
Maciej Lasyk
Monitoring with Nagios and Ganglia
Monitoring with Nagios and Ganglia
Maciej Lasyk
Stop disabling SELinux!
Stop disabling SELinux!
Maciej Lasyk
RHEL/Fedora + Docker (and SELinux)
RHEL/Fedora + Docker (and SELinux)
Maciej Lasyk
High Availability (HA) Explained
High Availability (HA) Explained
Maciej Lasyk
Mais de Maciej Lasyk
(20)
Rundeck & Ansible
Rundeck & Ansible
Docker 1.11
Docker 1.11
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
Programowanie AWSa z CLI, boto, Ansiblem i libcloudem
Co powinieneś wiedzieć na temat devops?f
Co powinieneś wiedzieć na temat devops?f
"Containers do not contain"
"Containers do not contain"
Linux containers & Devops
Linux containers & Devops
Under the Dome (of failure driven pipeline)
Under the Dome (of failure driven pipeline)
Continuous Security in DevOps
Continuous Security in DevOps
About cultural change w/Devops
About cultural change w/Devops
Orchestrating docker containers at scale (#DockerKRK edition)
Orchestrating docker containers at scale (#DockerKRK edition)
Orchestrating docker containers at scale (PJUG edition)
Orchestrating docker containers at scale (PJUG edition)
Orchestrating Docker containers at scale
Orchestrating Docker containers at scale
Ghost in the shell
Ghost in the shell
Scaling and securing node.js apps
Scaling and securing node.js apps
Node.js security
Node.js security
High Availability (HA) Explained - second edition
High Availability (HA) Explained - second edition
Monitoring with Nagios and Ganglia
Monitoring with Nagios and Ganglia
Stop disabling SELinux!
Stop disabling SELinux!
RHEL/Fedora + Docker (and SELinux)
RHEL/Fedora + Docker (and SELinux)
High Availability (HA) Explained
High Availability (HA) Explained
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
Baixar agora