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 One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
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
 
Git
GitGit
Git
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Versioning avec Git
Versioning avec GitVersioning avec Git
Versioning avec Git
 
Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Git and git flow
Git and git flowGit and git flow
Git and git flow
 
Github basics
Github basicsGithub basics
Github basics
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
 
Git for beginners
Git for beginnersGit for beginners
Git for beginners
 
Workshop git para iniciantes
Workshop git para iniciantesWorkshop git para iniciantes
Workshop git para iniciantes
 
Présentation de git
Présentation de gitPrésentation de git
Présentation de git
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Github
GithubGithub
Github
 
GitLab.pptx
GitLab.pptxGitLab.pptx
GitLab.pptx
 
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
 

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 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
 
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
 
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

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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...Miguel Araújo
 
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 RobisonAnna Loughnan Colquhoun
 
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.pdfEnterprise Knowledge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
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 Servicegiselly40
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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 Nanonetsnaman860154
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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...Igalia
 

Recently uploaded (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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...
 
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
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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...
 

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/