SlideShare a Scribd company logo
Git
Desmytifying Git
What is version control??
System that records change to file or set
a files over time so that you can recall
specific versions later.
GIT
• Distributed Version Control
• Thinks about its data
• Thinks of its data more like snapshots of a miniature of filesystem
• Only need local files and resources to operate.
How to clone a repository?
• To create a copy of a local repository:
git clone /local/repository
• To create a copy of a remote repository:
git clone user@server:/server/repository
How to add and confirm files
• To add changes in files:
git add <file> ( for only file)
git add * ( all changed files – untracked)
• To confirm all changes , it is necessary to create a commit:
git commit -m “comments about the commit”
git commit -a -m “comments about the commit” (git add + git commit –m)
How to visualize your commit
• To show all commits in your branch:
git log
How to send changes to a remote repository
• When you have your project at a point that you want to share, you
have to push it upstream.
git push origin master
PS: This command works only if you cloned from a server to which you
have write access
Working with branches
• To visualize local branches:
git branch
• To visualize local/remote branches:
git branch –all
Working with branches
• To create a branch:
git checkout –b “new_branch”
• To switch between branches:
git checkout <branch_name>
• To remove a branch:
git checkout –d new_branch
Working with branches
• To update the local repository
git pull
git pull –rebase (update and put your commits in the HEAD)
• To merge all changes between branches: (I didn’t understand this…)
don’t known what write
git checkout master
git merge <branch>
Creating Tags
• To create a tag:
git tag <tagversion> <hash>
• To view all tags:
git tag
Fixing errors
• To correct all changes in local files:
git checkout -- <file>
• To remove all changes and return to a stable commit:
git reset – hard
git reset –hard <hash> hash with stable commit
Or
git fetch origin
git reset –hard origin/master
Contacts
Email: pablodie@gmail.com
Linkedin: https://br.linkedin.com/pub/pablo-quiroga/2a/36b/b57
Email: erickson.higor@gmail.com
Linkedin: https://br.linkedin.com/pub/erickson-alves/7b/a07/257

More Related Content

What's hot

Git cheatsheet
Git cheatsheetGit cheatsheet
Git cheatsheet
synapsefre
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
Lam Hoang
 
Gn unify git
Gn unify gitGn unify git
Gn unify git
Priyanka Nag
 
Git presentation
Git presentationGit presentation
Git presentation
Sai Kumar Satapathy
 
Git Developer Cheatsheet
Git Developer CheatsheetGit Developer Cheatsheet
Git Developer Cheatsheet
Abdul Basit
 
Git undo
Git undoGit undo
Git undo
Avilay Parekh
 
Atlassian git cheatsheet
Atlassian git cheatsheetAtlassian git cheatsheet
Atlassian git cheatsheet
Abdul Basit
 
Integrating Bitbutket into Rstudio-server
Integrating Bitbutket into Rstudio-serverIntegrating Bitbutket into Rstudio-server
Integrating Bitbutket into Rstudio-server
Thinh Huynh
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and TagsGit Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and Tags
Mikhail Melnik
 
Introduction into Git
Introduction into GitIntroduction into Git
Introduction into Git
Serhii Kartashov
 
Version control git day03
Version control   git day03Version control   git day03
Version control git day03
Gourav Varma
 
GIT - GOOD PRACTICES
GIT - GOOD PRACTICESGIT - GOOD PRACTICES
GIT - GOOD PRACTICES
Rodolfo Spalenza
 
From svn to git
From svn to gitFrom svn to git
From svn to git
Nehal Shah
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
mobaires
 
Cheltenham Geeks - git talk/interactive session
Cheltenham Geeks - git talk/interactive sessionCheltenham Geeks - git talk/interactive session
Cheltenham Geeks - git talk/interactive session
Matt Breckon
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
Safique Ahmed Faruque
 
18 Git #burningkeyboards
18 Git #burningkeyboards18 Git #burningkeyboards
18 Git #burningkeyboards
Denis Ristic
 
Git
GitGit
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
WSO2
 
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
Christoph Matthies
 

What's hot (20)

Git cheatsheet
Git cheatsheetGit cheatsheet
Git cheatsheet
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
 
Gn unify git
Gn unify gitGn unify git
Gn unify git
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git Developer Cheatsheet
Git Developer CheatsheetGit Developer Cheatsheet
Git Developer Cheatsheet
 
Git undo
Git undoGit undo
Git undo
 
Atlassian git cheatsheet
Atlassian git cheatsheetAtlassian git cheatsheet
Atlassian git cheatsheet
 
Integrating Bitbutket into Rstudio-server
Integrating Bitbutket into Rstudio-serverIntegrating Bitbutket into Rstudio-server
Integrating Bitbutket into Rstudio-server
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and TagsGit Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and Tags
 
Introduction into Git
Introduction into GitIntroduction into Git
Introduction into Git
 
Version control git day03
Version control   git day03Version control   git day03
Version control git day03
 
GIT - GOOD PRACTICES
GIT - GOOD PRACTICESGIT - GOOD PRACTICES
GIT - GOOD PRACTICES
 
From svn to git
From svn to gitFrom svn to git
From svn to git
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
Cheltenham Geeks - git talk/interactive session
Cheltenham Geeks - git talk/interactive sessionCheltenham Geeks - git talk/interactive session
Cheltenham Geeks - git talk/interactive session
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
 
18 Git #burningkeyboards
18 Git #burningkeyboards18 Git #burningkeyboards
18 Git #burningkeyboards
 
Git
GitGit
Git
 
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
 
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
 

Viewers also liked

Slideshow lycee in english
Slideshow lycee in englishSlideshow lycee in english
Slideshow lycee in english
Viktorija Gailisa
 
Productora Smiling Cosmos
Productora Smiling CosmosProductora Smiling Cosmos
Productora Smiling Cosmos
Pame Teperman
 
Prezen
PrezenPrezen
Questionairre lodz poland
Questionairre lodz poland Questionairre lodz poland
Questionairre lodz poland
Viktorija Gailisa
 
The duality of the light'
The duality of the light'The duality of the light'
The duality of the light'
Viktorija Gailisa
 
Day1 woo
Day1 wooDay1 woo
Day1 woo
ratlifg
 
Do people listen to you?
Do people listen to you?Do people listen to you?
Do people listen to you?
Sanket Shah
 
Presentation1
Presentation1Presentation1
Presentation1
Viktorija Gailisa
 
Asad c.v.doc1
Asad c.v.doc1Asad c.v.doc1
Asad c.v.doc1
Asad Hussain
 
Quizzz
QuizzzQuizzz
Quizzz
Sudarshan Ps
 
Demystifying Git
Demystifying GitDemystifying Git
Demystifying Git
Pablo Quiroga
 
Rhône alpes, our region
Rhône alpes, our regionRhône alpes, our region
Rhône alpes, our region
Viktorija Gailisa
 
Comparazione dati comenius
Comparazione dati comeniusComparazione dati comenius
Comparazione dati comenius
Viktorija Gailisa
 
Digital media in intercultural education
Digital media in intercultural educationDigital media in intercultural education
Digital media in intercultural education
Viktorija Gailisa
 
About latvia
About latviaAbout latvia
About latvia
Viktorija Gailisa
 
Fundacion universitaria san martin villavicencio
Fundacion universitaria san martin villavicencioFundacion universitaria san martin villavicencio
Fundacion universitaria san martin villavicencio
angelic3036
 

Viewers also liked (17)

Slideshow lycee in english
Slideshow lycee in englishSlideshow lycee in english
Slideshow lycee in english
 
Productora Smiling Cosmos
Productora Smiling CosmosProductora Smiling Cosmos
Productora Smiling Cosmos
 
Prezen
PrezenPrezen
Prezen
 
Questionairre lodz poland
Questionairre lodz poland Questionairre lodz poland
Questionairre lodz poland
 
The duality of the light'
The duality of the light'The duality of the light'
The duality of the light'
 
Day1 woo
Day1 wooDay1 woo
Day1 woo
 
Do people listen to you?
Do people listen to you?Do people listen to you?
Do people listen to you?
 
Presentation1
Presentation1Presentation1
Presentation1
 
Asad c.v.doc1
Asad c.v.doc1Asad c.v.doc1
Asad c.v.doc1
 
Quizzz
QuizzzQuizzz
Quizzz
 
Demystifying Git
Demystifying GitDemystifying Git
Demystifying Git
 
Rhône alpes, our region
Rhône alpes, our regionRhône alpes, our region
Rhône alpes, our region
 
Comparazione dati comenius
Comparazione dati comeniusComparazione dati comenius
Comparazione dati comenius
 
Digital media in intercultural education
Digital media in intercultural educationDigital media in intercultural education
Digital media in intercultural education
 
M avad ang_okt_2013x
M avad ang_okt_2013xM avad ang_okt_2013x
M avad ang_okt_2013x
 
About latvia
About latviaAbout latvia
About latvia
 
Fundacion universitaria san martin villavicencio
Fundacion universitaria san martin villavicencioFundacion universitaria san martin villavicencio
Fundacion universitaria san martin villavicencio
 

Similar to Demystifying Git

Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
gdsc13
 
Git training v10
Git training v10Git training v10
Git training v10
Skander Hamza
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
Soumen Debgupta
 
Git walkthrough
Git walkthroughGit walkthrough
Git walkthrough
Bimal Jain
 
Git github
Git githubGit github
Git github
Anurag Deb
 
Working with Git
Working with GitWorking with Git
Working with Git
Sanghoon Hong
 
Git basic
Git basicGit basic
Git basic
Emran Ul Hadi
 
Git presentation, Viktor Pyskunov
Git presentation, Viktor PyskunovGit presentation, Viktor Pyskunov
Git presentation, Viktor Pyskunov
Viktor Pyskunov
 
Git 101
Git 101Git 101
Git 101
Sachet Mittal
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
Pranesh Vittal
 
Git hub
Git hubGit hub
Git hub
Nitin Goel
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
ssusered2ec2
 
git.ppt.pdf
git.ppt.pdfgit.ppt.pdf
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
Gourav Varma
 
Version Control System - Git
Version Control System - GitVersion Control System - Git
Version Control System - Git
Carlo Bernaschina
 
Git with the flow
Git with the flowGit with the flow
Git with the flow
Dana White
 
Git tips
Git tipsGit tips
Git tips
Arthur Shvetsov
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
Tilton2
 
Git and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideGit and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slide
RaghavendraVattikuti1
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 

Similar to Demystifying Git (20)

Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Git training v10
Git training v10Git training v10
Git training v10
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
 
Git walkthrough
Git walkthroughGit walkthrough
Git walkthrough
 
Git github
Git githubGit github
Git github
 
Working with Git
Working with GitWorking with Git
Working with Git
 
Git basic
Git basicGit basic
Git basic
 
Git presentation, Viktor Pyskunov
Git presentation, Viktor PyskunovGit presentation, Viktor Pyskunov
Git presentation, Viktor Pyskunov
 
Git 101
Git 101Git 101
Git 101
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
 
Git hub
Git hubGit hub
Git hub
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
 
git.ppt.pdf
git.ppt.pdfgit.ppt.pdf
git.ppt.pdf
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
 
Version Control System - Git
Version Control System - GitVersion Control System - Git
Version Control System - Git
 
Git with the flow
Git with the flowGit with the flow
Git with the flow
 
Git tips
Git tipsGit tips
Git tips
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Git and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slideGit and Github workshop ppt slide by slide
Git and Github workshop ppt slide by slide
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 

Recently uploaded

8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
Yara Milbes
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 

Recently uploaded (20)

8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 

Demystifying Git

  • 2. What is version control?? System that records change to file or set a files over time so that you can recall specific versions later.
  • 3. GIT • Distributed Version Control • Thinks about its data • Thinks of its data more like snapshots of a miniature of filesystem • Only need local files and resources to operate.
  • 4. How to clone a repository? • To create a copy of a local repository: git clone /local/repository • To create a copy of a remote repository: git clone user@server:/server/repository
  • 5. How to add and confirm files • To add changes in files: git add <file> ( for only file) git add * ( all changed files – untracked) • To confirm all changes , it is necessary to create a commit: git commit -m “comments about the commit” git commit -a -m “comments about the commit” (git add + git commit –m)
  • 6. How to visualize your commit • To show all commits in your branch: git log
  • 7. How to send changes to a remote repository • When you have your project at a point that you want to share, you have to push it upstream. git push origin master PS: This command works only if you cloned from a server to which you have write access
  • 8. Working with branches • To visualize local branches: git branch • To visualize local/remote branches: git branch –all
  • 9. Working with branches • To create a branch: git checkout –b “new_branch” • To switch between branches: git checkout <branch_name> • To remove a branch: git checkout –d new_branch
  • 10. Working with branches • To update the local repository git pull git pull –rebase (update and put your commits in the HEAD) • To merge all changes between branches: (I didn’t understand this…) don’t known what write git checkout master git merge <branch>
  • 11. Creating Tags • To create a tag: git tag <tagversion> <hash> • To view all tags: git tag
  • 12. Fixing errors • To correct all changes in local files: git checkout -- <file> • To remove all changes and return to a stable commit: git reset – hard git reset –hard <hash> hash with stable commit Or git fetch origin git reset –hard origin/master
  • 13. Contacts Email: pablodie@gmail.com Linkedin: https://br.linkedin.com/pub/pablo-quiroga/2a/36b/b57 Email: erickson.higor@gmail.com Linkedin: https://br.linkedin.com/pub/erickson-alves/7b/a07/257