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

Git Introduction
Git IntroductionGit Introduction
Git Introduction
Gareth Hall
 

What's hot (20)

Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git training v10
Git training v10Git training v10
Git training v10
 
Learning git
Learning gitLearning git
Learning git
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
 
Treinamento git - Papos RBSDev
Treinamento git - Papos RBSDevTreinamento git - Papos RBSDev
Treinamento git - Papos RBSDev
 
Git Introduction Tutorial
Git Introduction TutorialGit Introduction Tutorial
Git Introduction Tutorial
 
Git Introduction
Git IntroductionGit Introduction
Git Introduction
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 
Git and git flow
Git and git flowGit and git flow
Git and git flow
 
git and github
git and githubgit and github
git and github
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
WorkShop: Introducción a GIT
WorkShop: Introducción a GITWorkShop: Introducción a GIT
WorkShop: Introducción a GIT
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to 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 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Git+github
Git+githubGit+github
Git+github
 

Similar to Presentacion git

Pragmatic Guide to Git
Pragmatic Guide to GitPragmatic Guide to Git
Pragmatic Guide to Git
ConFoo
 
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
Brian K. Vagnini
 

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
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
 
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
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 

More from Ignacio 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 worlds
Ignacio 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

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

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/