際際滷

際際滷Share a Scribd company logo
Gitting things done - Git Basics
TOPICS
 Exploring .git directory
 Git Terminology
 Git commands
 Cleaning branch history  Interactive rebase
 UI tools (gitk, git-gui, git-extensions)
 Merge Requests & Code Review Process
.GIT DIRECTORY
 Hooks
 Config
 Info/exclude
 Logs
 Objects
 Refs
$ tree -d .git
.git
|-- hooks
|-- config
|-- info
|-- logs
| `-- refs
| |-- heads
| `-- remotes
| `-- origin
|-- objects
| |-- info
| `-- pack
`-- refs
|-- heads
|-- remotes
| `-- origin
`-- tags
GIT GLOSSARY
 Refs  Local branches, Remote branches, Tags
 Upstream [Also Upstream branch]
 Working directory  Staging area (Index)  Local repo  Upstream repo
 Working Tree
 HEAD, HEAD^, HEAD~
 Change set
 Author, Committer
 Working directory: Clean Vs Dirty
 Object
 Pack
Next
GIT BRANCHES
Back
master
master
origin/master
master
Local Gitlab
master
GIT COMMANDS
 Config, Remote, Clone, Checkout
 Status, Add, Commit, Show, Amend, Revert
 Merge, Rebase
 Fetch, Pull
 Push
Next
GIT REVERT
Back
4
5
6
- 5
4
6
GIT MERGE - FF
Next
branch1 branch2
branch1
Merge branch2 into
branch1
branch1
GIT MERGE  NON FF
Back
branch1
branch2branch1
Merge branch2 into
branch1
branch1
GIT REBASE
Back
branch2branch1
branch1
branch1
GIT FETCH
Back
branch1 origin/branch1
origin/branch1origin/branch1
GIT PULL
Next
branch1
origin/branch1branch1
origin/branch1
GIT PULL REBASE
Back
origin/branch1branch1
branch1
origin/branch1
GIT COMMANDS
 Log
 Reset (Soft, Hard)
 Stash
 Cherry-pick
 Reflog
Next
GIT RESET
Next
branch1
branch1branch1
GIT RESET HARD
Back
branch1
GIT CHERRY-PICK
Back
branch1
branch2branch1
INTERACTIVE REBASE
$ git rebase i HEAD~5
Cleaning branch history
GIT GUI
 Gitk
 Git-gui
 Git Extensions
 ??
Test
CODE REVIEW
 Code Review guidelines
 Merge Requests
MERGE REQUESTS
Next
developbranch
Questions?
Thank You!

More Related Content

Similar to Gitting things done - Git Basics (20)

PDF
Did you git yet?
Michael Fong
PDF
Advanced Git
Sergiu-Ioan Ungur
ODP
Introduction to Git (Greg Lonnon)
Boise Web Technologies Group
PDF
Embedded Systems: Lecture 12: Introduction to Git & GitHub (Part 3)
Ahmed El-Arabawy
PDF
Git tutorial
mobaires
PDF
Git cheat sheet with diagram-5.pdf
NiranjanKumarGanjiku1
PPT
Git Cards - Keynote Format
Adam Lowe
PDF
SVN 2 Git
Marco De Stefano
PDF
Don't fear the rebase
Giorgio Cefaro
KEY
Use git the proper way
Jaime Buelta
PPTX
git.pptx
YoussefBaoussous1
PDF
Getting some Git
BADR
PDF
Advanced Git - Functionality and Features
All Things Open
PPTX
An introduction to Git
Muhil Vannan
PPTX
Git and GitHub
Priya Nayak
PPTX
Use Git like a pro - condensed
Jes炭s Miguel Benito Calzada
PPTX
Git first steps
IgorSteinmacher
PPT
Report about the dangers of git and github on the environment
lameche1islam
PPT
Git-GitHub.ppt Diploma in computer. engineering
Roshankumar558219
PPT
Distributed Version control using Git and Github
RikinBasu1
Did you git yet?
Michael Fong
Advanced Git
Sergiu-Ioan Ungur
Introduction to Git (Greg Lonnon)
Boise Web Technologies Group
Embedded Systems: Lecture 12: Introduction to Git & GitHub (Part 3)
Ahmed El-Arabawy
Git tutorial
mobaires
Git cheat sheet with diagram-5.pdf
NiranjanKumarGanjiku1
Git Cards - Keynote Format
Adam Lowe
SVN 2 Git
Marco De Stefano
Don't fear the rebase
Giorgio Cefaro
Use git the proper way
Jaime Buelta
Getting some Git
BADR
Advanced Git - Functionality and Features
All Things Open
An introduction to Git
Muhil Vannan
Git and GitHub
Priya Nayak
Use Git like a pro - condensed
Jes炭s Miguel Benito Calzada
Git first steps
IgorSteinmacher
Report about the dangers of git and github on the environment
lameche1islam
Git-GitHub.ppt Diploma in computer. engineering
Roshankumar558219
Distributed Version control using Git and Github
RikinBasu1

Recently uploaded (20)

PDF
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
PDF
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
PDF
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
PPTX
Avast Premium Security crack 25.5.6162 + License Key 2025
HyperPc soft
PDF
The Next-Gen HMIS Software AI, Blockchain & Cloud for Housing.pdf
Prudence B2B
PDF
Mastering VPC Architecture Build for Scale from Day 1.pdf
Devseccops.ai
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
PPTX
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
PDF
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
PDF
Building scalbale cloud native apps with .NET 8
GillesMathieu10
PDF
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
PDF
Automated Test Case Repair Using Language Models
Lionel Briand
PDF
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
PPTX
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
PPTX
Agentforce TDX 2025 Hackathon Achievement
GetOnCRM Solutions
DOCX
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
PDF
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
PDF
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
PDF
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
Avast Premium Security crack 25.5.6162 + License Key 2025
HyperPc soft
The Next-Gen HMIS Software AI, Blockchain & Cloud for Housing.pdf
Prudence B2B
Mastering VPC Architecture Build for Scale from Day 1.pdf
Devseccops.ai
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
Building scalbale cloud native apps with .NET 8
GillesMathieu10
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
Automated Test Case Repair Using Language Models
Lionel Briand
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
Foundations of Marketo Engage - Programs, Campaigns & Beyond - June 2025
BradBedford3
Agentforce TDX 2025 Hackathon Achievement
GetOnCRM Solutions
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
Ad

Gitting things done - Git Basics

Editor's Notes

  • #5: Refs references. All your branches, tags etc. Something that can refer to a commit HEAD A reference to the current commit. It also is a reference to the snapshot of the entire git tree at the current stage