SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
La he liado parda
Alfonso Alba García
@aprendegit
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
¿Comando más usado
para recuperar repos
estropeados?
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
#rm -r repositorio
#git clone git@github.com/micuenta/repositorio
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Si recurrimos a esto es
porque no entendemos
cómo funciona git
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
git-reset
• Según la página de manual
“Reset current HEAD to the specified
state”
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
http://mrslayunta.com/2012/12/26/navidad/ein/
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Demo 1: deshacer un
merge “conflictivo”
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Demo 1: deshacer un
merge
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Demo 2: deshacer un
rebase
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Bonus demo: hice
commits a la rama que
no era
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Encontrando bugs
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
git-bisect
• Según la página de manual
“Find by binary search the change that
introduced a bug”
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Demo 3: encontrando
un bug
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
git-revert
• Según la página de manual
“Revert some existing commits”
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Demo: corregir el bug
con git-revert
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Si quieres un método
infalible para liarla de
verdad...
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
...sobre-escribe /
borra / corrompe
la carpeta .git de tu
repositotio
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
RECUERDA:
un DSCM NO es un
sistema de backup
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Haz backups de tus
repositorios
http://jefferai.org/2013/03/29/distillation
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
Sobre mi
• Programación PHP / Ruby on Rails
• Formación especializada en git
• Consultoría git
http://about.me/aalbagarcia
http://www.aprendegit.com
http://www.cursodegit.com
jueves, 25 de abril de 13
cursodegit.com aprendegit.com
“La he liado parda” by aprendegit.com is licensed under a
Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License.
¡Gracias por vuestro
tiempo!
jueves, 25 de abril de 13

Weitere ähnliche Inhalte

Kürzlich hochgeladen

redes informaticas en una oficina administrativa
redes informaticas en una oficina administrativaredes informaticas en una oficina administrativa
redes informaticas en una oficina administrativa
nicho110
 

Kürzlich hochgeladen (10)

investigación de los Avances tecnológicos del siglo XXI
investigación de los Avances tecnológicos del siglo XXIinvestigación de los Avances tecnológicos del siglo XXI
investigación de los Avances tecnológicos del siglo XXI
 
Avances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanaAvances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvana
 
Guia Basica para bachillerato de Circuitos Basicos
Guia Basica para bachillerato de Circuitos BasicosGuia Basica para bachillerato de Circuitos Basicos
Guia Basica para bachillerato de Circuitos Basicos
 
Avances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estosAvances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estos
 
EVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptx
EVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptxEVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptx
EVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptx
 
redes informaticas en una oficina administrativa
redes informaticas en una oficina administrativaredes informaticas en una oficina administrativa
redes informaticas en una oficina administrativa
 
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
 
Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21
 
How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.
 
Buenos_Aires_Meetup_Redis_20240430_.pptx
Buenos_Aires_Meetup_Redis_20240430_.pptxBuenos_Aires_Meetup_Redis_20240430_.pptx
Buenos_Aires_Meetup_Redis_20240430_.pptx
 

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

La he liado parda

  • 1. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. La he liado parda Alfonso Alba García @aprendegit jueves, 25 de abril de 13
  • 2. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. ¿Comando más usado para recuperar repos estropeados? jueves, 25 de abril de 13
  • 3. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. #rm -r repositorio #git clone git@github.com/micuenta/repositorio jueves, 25 de abril de 13
  • 4. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Si recurrimos a esto es porque no entendemos cómo funciona git jueves, 25 de abril de 13
  • 5. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. git-reset • Según la página de manual “Reset current HEAD to the specified state” jueves, 25 de abril de 13
  • 6. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. http://mrslayunta.com/2012/12/26/navidad/ein/ jueves, 25 de abril de 13
  • 7. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Demo 1: deshacer un merge “conflictivo” jueves, 25 de abril de 13
  • 8. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Demo 1: deshacer un merge jueves, 25 de abril de 13
  • 9. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Demo 2: deshacer un rebase jueves, 25 de abril de 13
  • 10. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Bonus demo: hice commits a la rama que no era jueves, 25 de abril de 13
  • 11. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Encontrando bugs jueves, 25 de abril de 13
  • 12. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. git-bisect • Según la página de manual “Find by binary search the change that introduced a bug” jueves, 25 de abril de 13
  • 13. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Demo 3: encontrando un bug jueves, 25 de abril de 13
  • 14. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. git-revert • Según la página de manual “Revert some existing commits” jueves, 25 de abril de 13
  • 15. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Demo: corregir el bug con git-revert jueves, 25 de abril de 13
  • 16. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Si quieres un método infalible para liarla de verdad... jueves, 25 de abril de 13
  • 17. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. ...sobre-escribe / borra / corrompe la carpeta .git de tu repositotio jueves, 25 de abril de 13
  • 18. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. RECUERDA: un DSCM NO es un sistema de backup jueves, 25 de abril de 13
  • 19. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Haz backups de tus repositorios http://jefferai.org/2013/03/29/distillation jueves, 25 de abril de 13
  • 20. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. Sobre mi • Programación PHP / Ruby on Rails • Formación especializada en git • Consultoría git http://about.me/aalbagarcia http://www.aprendegit.com http://www.cursodegit.com jueves, 25 de abril de 13
  • 21. cursodegit.com aprendegit.com “La he liado parda” by aprendegit.com is licensed under a Creative Commons Reconocimiento-NoComercial-CompartirIgual 3.0 Unported License. ¡Gracias por vuestro tiempo! jueves, 25 de abril de 13