SlideShare a Scribd company logo
1 of 83
Download to read offline
Git & Github.
Nacho Martín
Git
Sistema de control
   de versiones
Sistema de control
   de versiones
   Distribuido
Ordenador 1   Servidor


  fichero      versión 3



              versión 2

Ordenador 2

              versión 1
  fichero
Ordenador 1


                fichero



               versión 3



               versión 2



               versión 1




Ordenador 2                 Ordenador 3


  fichero                      fichero



 versión 3                   versión 3



 versión 2                   versión 2



 versión 1                   versión 1
Ventajas
(y desventajas)
Muy rápido
Ramas fáciles
Flexible
Más difícil
¿Más difícil?
git init

                       o
git clone https://github.com/symfony/symfony.git
echo "hola mundo" > saludo
echo "hola mundo" > saludo
git status
echo "hola mundo" > saludo
git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what
will be committed)
#
# saludo
nothing added to commit but untracked files
present (use "git add" to track)
echo "hola mundo" > saludo
git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what
will be committed)
#
# saludo
nothing added to commit but untracked files
present (use "git add" to track)
echo "hola mundo" > saludo
git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what
will be committed)
#
# saludo
nothing added to commit but untracked files
present (use "git add" to track)
git add saludo
git add saludo
git status
git add saludo
git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: saludo
#
git commit -m "Commit inicial"
git commit -m "Commit inicial"

[master (root-commit) df5839d] Commit inicial
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 saludo
git commit -m "Commit inicial"

[master (root-commit) df5839d] Commit inicial
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 saludo

git log
git commit -m "Commit inicial"

[master (root-commit) df5839d] Commit inicial
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 saludo

git log

commit df5839d78e7b9c14672ca722c80f2a5a897ebfba
Author: Nacho Martín <nitram.ohcan@gmail.com>
Date: Tue Nov 8 14:43:38 2011 +0100

  Commit inicial
git commit -m "Commit inicial"

[master (root-commit) df5839d] Commit inicial
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 saludo

git log

commit df5839d78e7b9c14672ca722c80f2a5a897ebfba
Author: Nacho Martín <nitram.ohcan@gmail.com>
Date: Tue Nov 8 14:43:38 2011 +0100

  Commit inicial
git commit -m "Commit inicial"

[master (root-commit) df5839d] Commit inicial
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 saludo

git log

commit df5839d78e7b9c14672ca722c80f2a5a897ebfba
Author: Nacho Martín <nitram.ohcan@gmail.com>
Date: Tue Nov 8 14:43:38 2011 +0100

  Commit inicial
git commit -m "Commit inicial"

[master (root-commit) df5839d] Commit inicial
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 saludo

git log

commit df5839d78e7b9c14672ca722c80f2a5a897ebfba
Author: Nacho Martín <nitram.ohcan@gmail.com>
Date: Tue Nov 8 14:43:38 2011 +0100

  Commit inicial

gitk      o   GitX
                                 master
echo "como va todo" >> saludo

    Cambios sin commitear
     master   Commit inicial
echo "como va todo" >> saludo

    Cambios sin commitear
     master   Commit inicial

git add saludo
git commit -m "Amplio saludo"

     master   Amplio saludo
    Commit inicial
echo "como va todo" >> saludo

    Cambios sin commitear
     master   Commit inicial


git commit -a -m "Amplio saludo"

     master   Amplio saludo
    Commit inicial
echo "como va todo" >> saludo

    Cambios sin commitear
      master   Commit inicial
                   Solo para ficheros
                   ya trackeados
git commit -a -m "Amplio saludo"

      master   Amplio saludo
    Commit inicial
master
master   Amplio saludo
Commit inicial ( df5839d78e7... )
master   Amplio saludo
    Commit inicial ( df5839d78e7... )

git checkout df5839

     master   Amplio saludo
    Commit inicial
master    Amplio saludo
    Commit inicial ( df5839d78e7... )

git checkout df5839

     master    Amplio saludo
    Commit inicial

git checkout master

      master

    Commit inicial ( df5839d78e7... )
Alicia                              Github


git remote add origin git://github.com/user/repo.git


                                         remotes/origin/master




        master
Alicia                    Github
git fetch origin




     remotes/origin/master   remotes/origin/master




     master
Alicia                             Github
git fetch origin
git merge origin/master


     master   remotes/origin/master   remotes/origin/master
Alicia                                     Github
git fetch origin
git merge origin/master               }   git pull origin master



     master   remotes/origin/master           remotes/origin/master
Alicia        Github




     master




                remotes/origin/master
Alicia                               Github

git push origin master




        master   remotes/origin/master     remotes/origin/master
svn update        git pull


svn update -r     git checkout


svn add archivo   git add archivo


                  git commit -a -m
svn commit -m
                  git push
Ramas
git checkout -b facebook




     master   facebook
2 commits más tarde...




     facebook




     master
git checkout master




     facebook




     master
git checkout master
git merge facebook




     master   facebook
git checkout master
git merge facebook
git branch -d facebook




     master
facebook




master
facebook




master
git checkout master




     facebook




     master
arreglamos bug en master (y hacemos commit)




          facebook




          master
git checkout facebook




          facebook




          master
git merge master




          master   facebook
facebook




master
git rebase master




           facebook




           master
meld
En el tintero...



git rm <fichero>
git mv <fichero> <destino>
git reset d5f64567 [--hard]
git tag version-1.0 d5f64567
git cherry-pick
git submodule
Symfony2 ♥ Git
bin/vendors



deps                 deps.lock
deps
  [symfony]
    git=http://github.com/symfony/symfony.git
    version=v2.0.5
                                    prioritario
  deps.lock
  symfony 7f21a5e9792f892166a550bb5579




                      {
                          git clone <repositorio>
bin/vendors install       git fetch origin
                          git reset --hard <version>
Github
Repo
          Fork!
                       MiRepo

                        Work


                       MiRepo'

        Pull request
Repo'
¿PARA QUÉ?



    http://www.flickr.com/photos/deadwords/2473829859/
¿Preguntas?
Gracias
 nitram.ohcan@gmail.com
 @nacmartin


      limenius.com

More Related Content

What's hot

What's hot (20)

Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentation
 
Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
Git
GitGit
Git
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Git training v10
Git training v10Git training v10
Git training v10
 
Git commands
Git commandsGit commands
Git commands
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Git & Github for beginners
Git & Github for beginnersGit & Github for beginners
Git & Github for beginners
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Learning git
Learning gitLearning git
Learning git
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)Introducing GitLab (September 2018)
Introducing GitLab (September 2018)
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 

Similar to Presentacion git

#5 - Git - Contribuindo com um repositório remoto
#5 - Git - Contribuindo com um repositório remoto#5 - Git - Contribuindo com um repositório remoto
#5 - Git - Contribuindo com um repositório remotoRodrigo Branas
 
Pragmatic Guide to Git
Pragmatic Guide to GitPragmatic Guide to Git
Pragmatic Guide to GitConFoo
 
Git Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a BossGit Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a Bosstmacwilliam
 
Introducción a git y GitHub
Introducción a git y GitHubIntroducción a git y GitHub
Introducción a git y GitHubLucas Videla
 
How to Really Get Git
How to Really Get GitHow to Really Get Git
How to Really Get GitSusan Tan
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for ArtistsDavid Newbury
 
Sacándole jugo a git
Sacándole jugo a gitSacándole jugo a git
Sacándole jugo a gitBerny Cantos
 
Git - (a) Gentle InTroduction
Git - (a) Gentle InTroductionGit - (a) Gentle InTroduction
Git - (a) Gentle InTroductionBruno Bossola
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Brian K. Vagnini
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With GitNick Quaranto
 
Git Tricks — git utilities that make life git easier
Git Tricks — git utilities that make life git easierGit Tricks — git utilities that make life git easier
Git Tricks — git utilities that make life git easierChristoph Matthies
 

Similar to Presentacion git (20)

Loading...git
Loading...gitLoading...git
Loading...git
 
How to use git without rage
How to use git without rageHow to use git without rage
How to use git without rage
 
#5 - Git - Contribuindo com um repositório remoto
#5 - Git - Contribuindo com um repositório remoto#5 - Git - Contribuindo com um repositório remoto
#5 - Git - Contribuindo com um repositório remoto
 
Working with Git
Working with GitWorking with Git
Working with Git
 
Git training
Git trainingGit training
Git training
 
Pragmatic Guide to Git
Pragmatic Guide to GitPragmatic Guide to Git
Pragmatic Guide to Git
 
GIT_In_90_Minutes
GIT_In_90_MinutesGIT_In_90_Minutes
GIT_In_90_Minutes
 
Git Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a BossGit Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a Boss
 
Introducción a git y GitHub
Introducción a git y GitHubIntroducción a git y GitHub
Introducción a git y GitHub
 
How to Really Get Git
How to Really Get GitHow to Really Get Git
How to Really Get Git
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for Artists
 
git session --interactive
git session --interactivegit session --interactive
git session --interactive
 
Sacándole jugo a git
Sacándole jugo a gitSacándole jugo a git
Sacándole jugo a git
 
Git - (a) Gentle InTroduction
Git - (a) Gentle InTroductionGit - (a) Gentle InTroduction
Git - (a) Gentle InTroduction
 
Git & github
Git & githubGit & github
Git & github
 
M.Mozūras - git
M.Mozūras - gitM.Mozūras - git
M.Mozūras - git
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Wokshop de Git
Wokshop de Git Wokshop de Git
Wokshop de Git
 
Git Tricks — git utilities that make life git easier
Git Tricks — git utilities that make life git easierGit Tricks — git utilities that make life git easier
Git Tricks — git utilities that make life git easier
 

More from Ignacio Martín

Elixir/OTP for PHP developers
Elixir/OTP for PHP developersElixir/OTP for PHP developers
Elixir/OTP for PHP developersIgnacio Martín
 
Introduction to React Native Workshop
Introduction to React Native WorkshopIntroduction to React Native Workshop
Introduction to React Native WorkshopIgnacio Martín
 
Server side rendering with React and Symfony
Server side rendering with React and SymfonyServer side rendering with React and Symfony
Server side rendering with React and SymfonyIgnacio Martín
 
Symfony 4 Workshop - Limenius
Symfony 4 Workshop - LimeniusSymfony 4 Workshop - Limenius
Symfony 4 Workshop - LimeniusIgnacio Martín
 
Server Side Rendering of JavaScript in PHP
Server Side Rendering of JavaScript in PHPServer Side Rendering of JavaScript in PHP
Server Side Rendering of JavaScript in PHPIgnacio Martín
 
Extending Redux in the Server Side
Extending Redux in the Server SideExtending Redux in the Server Side
Extending Redux in the Server SideIgnacio Martín
 
Redux Sagas - React Alicante
Redux Sagas - React AlicanteRedux Sagas - React Alicante
Redux Sagas - React AlicanteIgnacio Martín
 
React Native Workshop - React Alicante
React Native Workshop - React AlicanteReact Native Workshop - React Alicante
React Native Workshop - React AlicanteIgnacio Martín
 
Asegurando APIs en Symfony con JWT
Asegurando APIs en Symfony con JWTAsegurando APIs en Symfony con JWT
Asegurando APIs en Symfony con JWTIgnacio Martín
 
Redux saga: managing your side effects. Also: generators in es6
Redux saga: managing your side effects. Also: generators in es6Redux saga: managing your side effects. Also: generators in es6
Redux saga: managing your side effects. Also: generators in es6Ignacio Martín
 
Integrating React.js with PHP projects
Integrating React.js with PHP projectsIntegrating React.js with PHP projects
Integrating React.js with PHP projectsIgnacio Martín
 
Keeping the frontend under control with Symfony and Webpack
Keeping the frontend under control with Symfony and WebpackKeeping the frontend under control with Symfony and Webpack
Keeping the frontend under control with Symfony and WebpackIgnacio Martín
 
Integrando React.js en aplicaciones Symfony (deSymfony 2016)
Integrando React.js en aplicaciones Symfony (deSymfony 2016)Integrando React.js en aplicaciones Symfony (deSymfony 2016)
Integrando React.js en aplicaciones Symfony (deSymfony 2016)Ignacio Martín
 
Adding Realtime to your Projects
Adding Realtime to your ProjectsAdding Realtime to your Projects
Adding Realtime to your ProjectsIgnacio Martín
 
Symfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worldsSymfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worldsIgnacio Martín
 

More from Ignacio Martín (18)

Elixir/OTP for PHP developers
Elixir/OTP for PHP developersElixir/OTP for PHP developers
Elixir/OTP for PHP developers
 
Introduction to React Native Workshop
Introduction to React Native WorkshopIntroduction to React Native Workshop
Introduction to React Native Workshop
 
Server side rendering with React and Symfony
Server side rendering with React and SymfonyServer side rendering with React and Symfony
Server side rendering with React and Symfony
 
Symfony 4 Workshop - Limenius
Symfony 4 Workshop - LimeniusSymfony 4 Workshop - Limenius
Symfony 4 Workshop - Limenius
 
Server Side Rendering of JavaScript in PHP
Server Side Rendering of JavaScript in PHPServer Side Rendering of JavaScript in PHP
Server Side Rendering of JavaScript in PHP
 
Extending Redux in the Server Side
Extending Redux in the Server SideExtending Redux in the Server Side
Extending Redux in the Server Side
 
Redux Sagas - React Alicante
Redux Sagas - React AlicanteRedux Sagas - React Alicante
Redux Sagas - React Alicante
 
React Native Workshop - React Alicante
React Native Workshop - React AlicanteReact Native Workshop - React Alicante
React Native Workshop - React Alicante
 
Asegurando APIs en Symfony con JWT
Asegurando APIs en Symfony con JWTAsegurando APIs en Symfony con JWT
Asegurando APIs en Symfony con JWT
 
Redux saga: managing your side effects. Also: generators in es6
Redux saga: managing your side effects. Also: generators in es6Redux saga: managing your side effects. Also: generators in es6
Redux saga: managing your side effects. Also: generators in es6
 
Integrating React.js with PHP projects
Integrating React.js with PHP projectsIntegrating React.js with PHP projects
Integrating React.js with PHP projects
 
Introduction to Redux
Introduction to ReduxIntroduction to Redux
Introduction to Redux
 
Keeping the frontend under control with Symfony and Webpack
Keeping the frontend under control with Symfony and WebpackKeeping the frontend under control with Symfony and Webpack
Keeping the frontend under control with Symfony and Webpack
 
Integrando React.js en aplicaciones Symfony (deSymfony 2016)
Integrando React.js en aplicaciones Symfony (deSymfony 2016)Integrando React.js en aplicaciones Symfony (deSymfony 2016)
Integrando React.js en aplicaciones Symfony (deSymfony 2016)
 
Adding Realtime to your Projects
Adding Realtime to your ProjectsAdding Realtime to your Projects
Adding Realtime to your Projects
 
Symfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worldsSymfony & Javascript. Combining the best of two worlds
Symfony & Javascript. Combining the best of two worlds
 
Symfony 2 CMF
Symfony 2 CMFSymfony 2 CMF
Symfony 2 CMF
 
Doctrine2 sf2Vigo
Doctrine2 sf2VigoDoctrine2 sf2Vigo
Doctrine2 sf2Vigo
 

Recently uploaded

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 

Recently uploaded (20)

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Presentacion git

  • 2. Git
  • 3. Sistema de control de versiones
  • 4. Sistema de control de versiones Distribuido
  • 5. Ordenador 1 Servidor fichero versión 3 versión 2 Ordenador 2 versión 1 fichero
  • 6. Ordenador 1 fichero versión 3 versión 2 versión 1 Ordenador 2 Ordenador 3 fichero fichero versión 3 versión 3 versión 2 versión 2 versión 1 versión 1
  • 9.
  • 11.
  • 13.
  • 16.
  • 17. git init o git clone https://github.com/symfony/symfony.git
  • 18. echo "hola mundo" > saludo
  • 19. echo "hola mundo" > saludo git status
  • 20. echo "hola mundo" > saludo git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # saludo nothing added to commit but untracked files present (use "git add" to track)
  • 21. echo "hola mundo" > saludo git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # saludo nothing added to commit but untracked files present (use "git add" to track)
  • 22. echo "hola mundo" > saludo git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # saludo nothing added to commit but untracked files present (use "git add" to track)
  • 25. git add saludo git status # On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # # new file: saludo #
  • 26. git commit -m "Commit inicial"
  • 27. git commit -m "Commit inicial" [master (root-commit) df5839d] Commit inicial 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 saludo
  • 28. git commit -m "Commit inicial" [master (root-commit) df5839d] Commit inicial 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 saludo git log
  • 29. git commit -m "Commit inicial" [master (root-commit) df5839d] Commit inicial 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 saludo git log commit df5839d78e7b9c14672ca722c80f2a5a897ebfba Author: Nacho Martín <nitram.ohcan@gmail.com> Date: Tue Nov 8 14:43:38 2011 +0100 Commit inicial
  • 30. git commit -m "Commit inicial" [master (root-commit) df5839d] Commit inicial 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 saludo git log commit df5839d78e7b9c14672ca722c80f2a5a897ebfba Author: Nacho Martín <nitram.ohcan@gmail.com> Date: Tue Nov 8 14:43:38 2011 +0100 Commit inicial
  • 31. git commit -m "Commit inicial" [master (root-commit) df5839d] Commit inicial 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 saludo git log commit df5839d78e7b9c14672ca722c80f2a5a897ebfba Author: Nacho Martín <nitram.ohcan@gmail.com> Date: Tue Nov 8 14:43:38 2011 +0100 Commit inicial
  • 32. git commit -m "Commit inicial" [master (root-commit) df5839d] Commit inicial 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 saludo git log commit df5839d78e7b9c14672ca722c80f2a5a897ebfba Author: Nacho Martín <nitram.ohcan@gmail.com> Date: Tue Nov 8 14:43:38 2011 +0100 Commit inicial gitk o GitX master
  • 33. echo "como va todo" >> saludo Cambios sin commitear master Commit inicial
  • 34. echo "como va todo" >> saludo Cambios sin commitear master Commit inicial git add saludo git commit -m "Amplio saludo" master Amplio saludo Commit inicial
  • 35. echo "como va todo" >> saludo Cambios sin commitear master Commit inicial git commit -a -m "Amplio saludo" master Amplio saludo Commit inicial
  • 36. echo "como va todo" >> saludo Cambios sin commitear master Commit inicial Solo para ficheros ya trackeados git commit -a -m "Amplio saludo" master Amplio saludo Commit inicial
  • 38. master Amplio saludo Commit inicial ( df5839d78e7... )
  • 39. master Amplio saludo Commit inicial ( df5839d78e7... ) git checkout df5839 master Amplio saludo Commit inicial
  • 40. master Amplio saludo Commit inicial ( df5839d78e7... ) git checkout df5839 master Amplio saludo Commit inicial git checkout master master Commit inicial ( df5839d78e7... )
  • 41.
  • 42. Alicia Github git remote add origin git://github.com/user/repo.git remotes/origin/master master
  • 43. Alicia Github git fetch origin remotes/origin/master remotes/origin/master master
  • 44. Alicia Github git fetch origin git merge origin/master master remotes/origin/master remotes/origin/master
  • 45. Alicia Github git fetch origin git merge origin/master } git pull origin master master remotes/origin/master remotes/origin/master
  • 46. Alicia Github master remotes/origin/master
  • 47. Alicia Github git push origin master master remotes/origin/master remotes/origin/master
  • 48. svn update git pull svn update -r git checkout svn add archivo git add archivo git commit -a -m svn commit -m git push
  • 49. Ramas
  • 50. git checkout -b facebook master facebook
  • 51. 2 commits más tarde... facebook master
  • 52. git checkout master facebook master
  • 53. git checkout master git merge facebook master facebook
  • 54. git checkout master git merge facebook git branch -d facebook master
  • 57. git checkout master facebook master
  • 58. arreglamos bug en master (y hacemos commit) facebook master
  • 59. git checkout facebook facebook master
  • 60. git merge master master facebook
  • 62. git rebase master facebook master
  • 63. meld
  • 64. En el tintero... git rm <fichero> git mv <fichero> <destino> git reset d5f64567 [--hard] git tag version-1.0 d5f64567 git cherry-pick git submodule
  • 66. bin/vendors deps deps.lock
  • 67. deps [symfony] git=http://github.com/symfony/symfony.git version=v2.0.5 prioritario deps.lock symfony 7f21a5e9792f892166a550bb5579 { git clone <repositorio> bin/vendors install git fetch origin git reset --hard <version>
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78. Repo Fork! MiRepo Work MiRepo' Pull request Repo'
  • 79.
  • 80.
  • 81. ¿PARA QUÉ? http://www.flickr.com/photos/deadwords/2473829859/