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 (17)

PPTX
Git presentation
Sai Kumar Satapathy
 
PDF
Git Developer Cheatsheet
Abdul Basit
 
PPTX
Git undo
Avilay Parekh
 
PDF
Atlassian git cheatsheet
Abdul Basit
 
PPTX
Integrating Bitbutket into Rstudio-server
Thinh Huynh
 
PDF
Git Series. Episode 2. Merge, Upstream Commands and Tags
Mikhail Melnik
 
PPTX
Introduction into Git
Serhii Kartashov
 
PPTX
Version control git day03
Gourav Varma
 
PDF
GIT - GOOD PRACTICES
Rodolfo Spalenza
 
PPTX
From svn to git
Nehal Shah
 
PDF
Git tutorial
mobaires
 
PDF
Cheltenham Geeks - git talk/interactive session
Matt Breckon
 
PPTX
Git in 10 minutes
Safique Ahmed Faruque
 
PDF
18 Git #burningkeyboards
Denis Ristic
 
PPTX
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
WSO2
 
PDF
Git Tricks — git utilities that make life git easier
Christoph Matthies
 
Git presentation
Sai Kumar Satapathy
 
Git Developer Cheatsheet
Abdul Basit
 
Git undo
Avilay Parekh
 
Atlassian git cheatsheet
Abdul Basit
 
Integrating Bitbutket into Rstudio-server
Thinh Huynh
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Mikhail Melnik
 
Introduction into Git
Serhii Kartashov
 
Version control git day03
Gourav Varma
 
GIT - GOOD PRACTICES
Rodolfo Spalenza
 
From svn to git
Nehal Shah
 
Git tutorial
mobaires
 
Cheltenham Geeks - git talk/interactive session
Matt Breckon
 
Git in 10 minutes
Safique Ahmed Faruque
 
18 Git #burningkeyboards
Denis Ristic
 
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
WSO2
 
Git Tricks — git utilities that make life git easier
Christoph Matthies
 

Viewers also liked (17)

PPTX
Slideshow lycee in english
Viktorija Gailisa
 
PDF
Productora Smiling Cosmos
Pame Teperman
 
PPT
Questionairre lodz poland
Viktorija Gailisa
 
PPTX
The duality of the light'
Viktorija Gailisa
 
PPTX
Day1 woo
ratlifg
 
PDF
Do people listen to you?
Sanket Shah
 
PPTX
Presentation1
Viktorija Gailisa
 
DOC
Asad c.v.doc1
Asad Hussain
 
PPT
Quizzz
Sudarshan Ps
 
PPTX
Demystifying Git
Pablo Quiroga
 
PPTX
Rhône alpes, our region
Viktorija Gailisa
 
PPT
Comparazione dati comenius
Viktorija Gailisa
 
PPT
Digital media in intercultural education
Viktorija Gailisa
 
PPTX
M avad ang_okt_2013x
Viktorija Gailisa
 
PPTX
About latvia
Viktorija Gailisa
 
PPTX
Fundacion universitaria san martin villavicencio
angelic3036
 
Slideshow lycee in english
Viktorija Gailisa
 
Productora Smiling Cosmos
Pame Teperman
 
Questionairre lodz poland
Viktorija Gailisa
 
The duality of the light'
Viktorija Gailisa
 
Day1 woo
ratlifg
 
Do people listen to you?
Sanket Shah
 
Presentation1
Viktorija Gailisa
 
Asad c.v.doc1
Asad Hussain
 
Quizzz
Sudarshan Ps
 
Demystifying Git
Pablo Quiroga
 
Rhône alpes, our region
Viktorija Gailisa
 
Comparazione dati comenius
Viktorija Gailisa
 
Digital media in intercultural education
Viktorija Gailisa
 
M avad ang_okt_2013x
Viktorija Gailisa
 
About latvia
Viktorija Gailisa
 
Fundacion universitaria san martin villavicencio
angelic3036
 
Ad

Similar to Demystifying Git (20)

KEY
Introduction to Git
Lukas Fittl
 
PPTX
Git and GitHub
Priya Nayak
 
PPTX
Introduction to Git and Github
Max Claus Nunes
 
PPTX
Version controll.pptx
Md. Main Uddin Rony
 
PDF
Git training
eric7master
 
PPTX
GIT.pptx
Soumen Debgupta
 
ODP
Git tech talk
razasayed
 
PDF
Advanced Git Tutorial
Sage Sharp
 
KEY
Intro to git
josh_cutler
 
PDF
Version Control System - Git
Carlo Bernaschina
 
PPTX
Git 101
Sachet Mittal
 
PDF
SVN 2 Git
Marco De Stefano
 
PPTX
Understanding about git
Sothearin Ren
 
PDF
SouthEast LinuxFest 2015 - intro to git
edgester
 
KEY
Git Tech Talk
Chris Johnson
 
PPTX
Git tutorial
Ananth Kumar
 
PPTX
Learning Basic GIT Cmd
srinathcox
 
PPTX
Git Session 2K23.pptx
Eshaan35
 
PDF
Git Is A State Of Mind - The path to becoming a Master of the mystic art of Git
Nicola Costantino
 
PDF
Git in Eclipse
Dariusz Łuksza
 
Introduction to Git
Lukas Fittl
 
Git and GitHub
Priya Nayak
 
Introduction to Git and Github
Max Claus Nunes
 
Version controll.pptx
Md. Main Uddin Rony
 
Git training
eric7master
 
GIT.pptx
Soumen Debgupta
 
Git tech talk
razasayed
 
Advanced Git Tutorial
Sage Sharp
 
Intro to git
josh_cutler
 
Version Control System - Git
Carlo Bernaschina
 
Git 101
Sachet Mittal
 
SVN 2 Git
Marco De Stefano
 
Understanding about git
Sothearin Ren
 
SouthEast LinuxFest 2015 - intro to git
edgester
 
Git Tech Talk
Chris Johnson
 
Git tutorial
Ananth Kumar
 
Learning Basic GIT Cmd
srinathcox
 
Git Session 2K23.pptx
Eshaan35
 
Git Is A State Of Mind - The path to becoming a Master of the mystic art of Git
Nicola Costantino
 
Git in Eclipse
Dariusz Łuksza
 
Ad

Recently uploaded (20)

PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PPTX
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 

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