SlideShare a Scribd company logo
1 of 37
GIT 201 - A DEEPER LOOK AT GIT
Git Me With Your Best Shot
Arthur Doler
@arthurdoler
arthurdoler@gmail.com
We’ll be using the Git
command line…
Source: Giphy
“FUNDAMENTAL PARTICLES” OF GIT
Blob
artdoler@machine$ git ls-files --stage
100644 ac461d89cb0a217c2ee2bfcac33e1c27df7739a7 0 path/to/source/file.js
Tree
artdoler@machine$ git write-tree
cf09c37fdb1e4ba320d2ae08e9eb32d6913979e3
artdoler@machine$ git ls-tree cf09
040000 tree c98ef89a1fc979e593927666c058d15f8111c0bf path
Commit
artdoler@machine$ echo "Manual commit." | git commit-tree cf09
c26db2aec27b78aeaed82173ec5f5b2303931b29
artdoler@machine$ git log c26d
commit c26db2aec27b78aeaed82173ec5f5b2303931b29
Author: Art Doler art.doler@aviture.us.com
Date: Thu May 20 08:59:12 2016 -0500
Manual commit.
A GIT REPOSITORY
IS JUST GRAPHS OF COMMITS
What Git Manages For You
What To Actually Think About
Blob
Tree
Commit
Δ
Δ
Δ
Δ
Δ
Δ
Δ
Δ
ΔΔ
Δ
Δ
Δ
HOW DOES GIT MAKE DIFFS?
B
C
F
E
A
Commit 1 Commit 2
Directory Directory
Rename
Delete
Edit
Add
BRANCHES & TAGS
When I realize “DVCS” means I always get my own
branch
Source: Giphy
WHAT’S IN A NAME?
HEAD
ac461d89cb0a217c2ee2bfcac33e1c27df7739a7
feature/my_feature_branch
^ ~
B = A^ = A~ = A^1 = A~1
A
B
A = A^0
C
C = B^ = A^^ = A~~
C = A^1^1 = A~2
C ≠ A^2
develop
MERGING
When my coworker’s merge breaks my
feature
Source: Giphy
B = A^ = A~ = A^1 = A~1
A
B
A = A^0
C
D E
D = C^1 = C~ = B~2
develop
E = C^2 = B^^2 = A~2^2
develop branch_2
F G
F = C^^ = A~4
G = E~ = C^2^ = A~2^2~
C = B^ = A^^ = A~~
C = A^1^1 = A~2
C ≠ A^2
OPINION TIME
Source: Giphy
IF THE BEST WAY TO THINK ABOUT GIT
IS COMMIT TOPOLOGIES…
ONE CONCEPT, ONE COMMIT
“I don't know how many people
look at Al's progression of patches,
but they are stand-alone patches
on their own, while at the same
time _also_ being part of a larger
migration to the inscrutable goals
of Al - ie namespaces etc.
You may not realize just _how_
impressive that is, and what a
absolute wonder it is to work with
the guy.
Poetry in patches, indeed.”
- Linus Torvalds
On fa.linux.kernel, 27 Dec 2001
Source: Wikipedia
CLEAN CODE ↔ CLEAN HISTORY
PICK “TOO MANY COMMITS”
OVER “TOO FEW”
“History is the version of past events
that people have decided to agree
upon.”
- Attr. Napoleon Bonaparte
Source: Wikipedia
REBASING
When you learn to rebase like a boss
Source: Giphy
PUBLIC VERSUS PRIVATE BRANCHES
When you force push to
a
public branch
Source: Giphy
GARBAGE COLLECTION
Finding out git has a garbage collector
when it deletes your accidentally untracked
Source: Giphy
HISTORY METHODOLOGIES
Pure Merge (i.e. gitflow)
Pure Rebase (Keep Branch or Delete Branch)
Rebase Then Merge
Rebase With Squash (Mild/Major)
… A
D
E
F
Example Case: Feature
Develop
… B
F
Pure Merge
…
A
C D
E
G
Develop
Feature
…
B
Pure Rebase
(Keep or Delete Branch)
…
A
B C
D
Develop
Feature
Rebase Then Merge
…
A
C D
E
Develop
Feature
…
B
F
…
A
B D
E
Develop
FeatureF
Rebase With Squash
QUESTIONS?
When I accidentally
click ‘Merge pull
request’ instead of
‘Comment’ in GitHub
Source: Giphy
•Do you live in the Omaha/Lincoln area?
•Do you work in development or in another
profession in tech?
•Are you a consumer of mental health services or
have you been diagnosed with a mental disorder?
•Are you interested in being a founding member of a
peer-support group for technical mental health
consumers?
Talk to me afterward, or email me at
arthurdoler@gmail.com
(or Twitter DM or LinkedIn message or G+
RESOURCES
• Git from the Bottom Up (free!)
• http://ftp.newartisans.com/pub/git.from.bottom.up.pdf
• Gitflow
• http://nvie.com/posts/a-successful-git-branching-model/
• A Git Workflow for Agile Teams
• http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html
• Git Team Workflows: merge or rebase?
• http://blogs.atlassian.com/2013/10/git-team-workflows-merge-or-rebas
• Git Pro Book (also free!)
• http://git-scm.com/book
• Git pack files
• http://git-scm.com/book/en/Git-Internals-Packfiles
• http://stackoverflow.com/questions/5176225/are-gits-pack-files-deltas-r

More Related Content

Viewers also liked

Viewers also liked (8)

The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
 
#4 - Git - Stash
#4 - Git - Stash#4 - Git - Stash
#4 - Git - Stash
 
Git advanced
Git advancedGit advanced
Git advanced
 
GIT Fundamentals
GIT FundamentalsGIT Fundamentals
GIT Fundamentals
 
Git-ing out of your git messes
Git-ing out of  your git messesGit-ing out of  your git messes
Git-ing out of your git messes
 
Gibbering about git - managing your source code made easy
Gibbering about git - managing your source code made easyGibbering about git - managing your source code made easy
Gibbering about git - managing your source code made easy
 
Git Branching Model
Git Branching ModelGit Branching Model
Git Branching Model
 
Build Features, Not Apps
Build Features, Not AppsBuild Features, Not Apps
Build Features, Not Apps
 

Similar to Git 201: A Deeper Look at Git (Nebraska.Code 2016)

Git 201 - A Deeper Look at Git @ Prairie.Code() 2016
Git 201 - A Deeper Look at Git @ Prairie.Code() 2016Git 201 - A Deeper Look at Git @ Prairie.Code() 2016
Git 201 - A Deeper Look at Git @ Prairie.Code() 2016Arthur Doler
 
Version Control and Git - GitHub Workshop
Version Control and Git - GitHub WorkshopVersion Control and Git - GitHub Workshop
Version Control and Git - GitHub WorkshopAll Things Open
 
Git branching model_for_tap_team
Git branching model_for_tap_teamGit branching model_for_tap_team
Git branching model_for_tap_teamGrzegorz Wilczynski
 
slides.pdf
slides.pdfslides.pdf
slides.pdfvidsvagi
 
That's (g)it! par Sébastien Dawans CETIC
That's (g)it! par Sébastien Dawans CETICThat's (g)it! par Sébastien Dawans CETIC
That's (g)it! par Sébastien Dawans CETICLa FeWeb
 
Introduction to Git for Non-Developers
Introduction to Git for Non-DevelopersIntroduction to Git for Non-Developers
Introduction to Git for Non-DevelopersAll Things Open
 
Introduction to Git for Non-Developers
Introduction to Git for Non-DevelopersIntroduction to Git for Non-Developers
Introduction to Git for Non-DevelopersJohn Anderson
 
Git the Docs: Learning Git in a safe space
Git the Docs: Learning Git in a safe spaceGit the Docs: Learning Git in a safe space
Git the Docs: Learning Git in a safe spaceBecky Todd
 
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]Carina C. Zona
 
Version Control with Git for Beginners
Version Control with Git for BeginnersVersion Control with Git for Beginners
Version Control with Git for Beginnersbryanbibat
 
An introduction to Git with Atlassian Suite
An introduction to Git with Atlassian SuiteAn introduction to Git with Atlassian Suite
An introduction to Git with Atlassian SuiteChetan Khatri
 

Similar to Git 201: A Deeper Look at Git (Nebraska.Code 2016) (20)

Git 201 - A Deeper Look at Git @ Prairie.Code() 2016
Git 201 - A Deeper Look at Git @ Prairie.Code() 2016Git 201 - A Deeper Look at Git @ Prairie.Code() 2016
Git 201 - A Deeper Look at Git @ Prairie.Code() 2016
 
Version Control and Git - GitHub Workshop
Version Control and Git - GitHub WorkshopVersion Control and Git - GitHub Workshop
Version Control and Git - GitHub Workshop
 
Git branching model_for_tap_team
Git branching model_for_tap_teamGit branching model_for_tap_team
Git branching model_for_tap_team
 
slides.pdf
slides.pdfslides.pdf
slides.pdf
 
slides.pdf
slides.pdfslides.pdf
slides.pdf
 
git & GitHub workshop
git & GitHub workshopgit & GitHub workshop
git & GitHub workshop
 
That's (g)it! par Sébastien Dawans CETIC
That's (g)it! par Sébastien Dawans CETICThat's (g)it! par Sébastien Dawans CETIC
That's (g)it! par Sébastien Dawans CETIC
 
Working with Git
Working with GitWorking with Git
Working with Git
 
Introduction to Git for Non-Developers
Introduction to Git for Non-DevelopersIntroduction to Git for Non-Developers
Introduction to Git for Non-Developers
 
Introduction to Git for Non-Developers
Introduction to Git for Non-DevelopersIntroduction to Git for Non-Developers
Introduction to Git for Non-Developers
 
Git the Docs: Learning Git in a safe space
Git the Docs: Learning Git in a safe spaceGit the Docs: Learning Git in a safe space
Git the Docs: Learning Git in a safe space
 
Introduction to Git (Greg Lonnon)
Introduction to Git (Greg Lonnon)Introduction to Git (Greg Lonnon)
Introduction to Git (Greg Lonnon)
 
Git Without Puns
Git Without PunsGit Without Puns
Git Without Puns
 
Git Basic
Git BasicGit Basic
Git Basic
 
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
Cool Git Tricks (That I Learn When Things Go Badly) [1/2]
 
Version Control with Git for Beginners
Version Control with Git for BeginnersVersion Control with Git for Beginners
Version Control with Git for Beginners
 
Git
GitGit
Git
 
git session --interactive
git session --interactivegit session --interactive
git session --interactive
 
An introduction to Git with Atlassian Suite
An introduction to Git with Atlassian SuiteAn introduction to Git with Atlassian Suite
An introduction to Git with Atlassian Suite
 
Git Tech Talk
Git  Tech TalkGit  Tech Talk
Git Tech Talk
 

More from Arthur Doler

The Saboteur in Your Retrospectives: Handout
The Saboteur in Your Retrospectives: HandoutThe Saboteur in Your Retrospectives: Handout
The Saboteur in Your Retrospectives: HandoutArthur Doler
 
The Developer's Guide to Learning
The Developer's Guide to LearningThe Developer's Guide to Learning
The Developer's Guide to LearningArthur Doler
 
The Whys and Hows of Impostor Syndrome and the Illusion of Transparency
The Whys and Hows of Impostor Syndrome and the Illusion of TransparencyThe Whys and Hows of Impostor Syndrome and the Illusion of Transparency
The Whys and Hows of Impostor Syndrome and the Illusion of TransparencyArthur Doler
 
Let's Talk About Mental Health Handout
Let's Talk About Mental Health HandoutLet's Talk About Mental Health Handout
Let's Talk About Mental Health HandoutArthur Doler
 
Let's Talk About Mental Health
Let's Talk About Mental HealthLet's Talk About Mental Health
Let's Talk About Mental HealthArthur Doler
 
Feedback Workshop KCDC2018
Feedback Workshop KCDC2018Feedback Workshop KCDC2018
Feedback Workshop KCDC2018Arthur Doler
 
Let's Talk About Mental Health - KCDC 2018
Let's Talk About Mental Health - KCDC 2018Let's Talk About Mental Health - KCDC 2018
Let's Talk About Mental Health - KCDC 2018Arthur Doler
 
Let's Talk About Mental Health Handout - KCDC 2018
Let's Talk About Mental Health Handout - KCDC 2018Let's Talk About Mental Health Handout - KCDC 2018
Let's Talk About Mental Health Handout - KCDC 2018Arthur Doler
 
Let's Talk About Mental Health Handout - NDC Oslo 2018
Let's Talk About Mental Health Handout - NDC Oslo 2018Let's Talk About Mental Health Handout - NDC Oslo 2018
Let's Talk About Mental Health Handout - NDC Oslo 2018Arthur Doler
 
Let's Talk About Mental Health - NDC Oslo 2018
Let's Talk About Mental Health - NDC Oslo 2018Let's Talk About Mental Health - NDC Oslo 2018
Let's Talk About Mental Health - NDC Oslo 2018Arthur Doler
 
Let's Talk About Mental Health Handout - Nebraska.Code 2018
Let's Talk About Mental Health Handout - Nebraska.Code 2018Let's Talk About Mental Health Handout - Nebraska.Code 2018
Let's Talk About Mental Health Handout - Nebraska.Code 2018Arthur Doler
 
Let's Talk About Mental Health - Nebraska.Code 2018
Let's Talk About Mental Health - Nebraska.Code 2018Let's Talk About Mental Health - Nebraska.Code 2018
Let's Talk About Mental Health - Nebraska.Code 2018Arthur Doler
 
The Developer's Guide to Learning - 200OK 2018
The Developer's Guide to Learning - 200OK 2018The Developer's Guide to Learning - 200OK 2018
The Developer's Guide to Learning - 200OK 2018Arthur Doler
 
The Developer's Guide to Learning - Codestock 2018
The Developer's Guide to Learning - Codestock 2018The Developer's Guide to Learning - Codestock 2018
The Developer's Guide to Learning - Codestock 2018Arthur Doler
 
What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018Arthur Doler
 
What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018Arthur Doler
 
Let's Talk About Mental Health - DevUp 2017
Let's Talk About Mental Health - DevUp 2017Let's Talk About Mental Health - DevUp 2017
Let's Talk About Mental Health - DevUp 2017Arthur Doler
 
Let's Talk About Mental Health - Handout - DevUp 2017
Let's Talk About Mental Health - Handout - DevUp 2017Let's Talk About Mental Health - Handout - DevUp 2017
Let's Talk About Mental Health - Handout - DevUp 2017Arthur Doler
 
The Developer's Guide to Learning Effectively
The Developer's Guide to Learning EffectivelyThe Developer's Guide to Learning Effectively
The Developer's Guide to Learning EffectivelyArthur Doler
 
The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...
The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...
The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...Arthur Doler
 

More from Arthur Doler (20)

The Saboteur in Your Retrospectives: Handout
The Saboteur in Your Retrospectives: HandoutThe Saboteur in Your Retrospectives: Handout
The Saboteur in Your Retrospectives: Handout
 
The Developer's Guide to Learning
The Developer's Guide to LearningThe Developer's Guide to Learning
The Developer's Guide to Learning
 
The Whys and Hows of Impostor Syndrome and the Illusion of Transparency
The Whys and Hows of Impostor Syndrome and the Illusion of TransparencyThe Whys and Hows of Impostor Syndrome and the Illusion of Transparency
The Whys and Hows of Impostor Syndrome and the Illusion of Transparency
 
Let's Talk About Mental Health Handout
Let's Talk About Mental Health HandoutLet's Talk About Mental Health Handout
Let's Talk About Mental Health Handout
 
Let's Talk About Mental Health
Let's Talk About Mental HealthLet's Talk About Mental Health
Let's Talk About Mental Health
 
Feedback Workshop KCDC2018
Feedback Workshop KCDC2018Feedback Workshop KCDC2018
Feedback Workshop KCDC2018
 
Let's Talk About Mental Health - KCDC 2018
Let's Talk About Mental Health - KCDC 2018Let's Talk About Mental Health - KCDC 2018
Let's Talk About Mental Health - KCDC 2018
 
Let's Talk About Mental Health Handout - KCDC 2018
Let's Talk About Mental Health Handout - KCDC 2018Let's Talk About Mental Health Handout - KCDC 2018
Let's Talk About Mental Health Handout - KCDC 2018
 
Let's Talk About Mental Health Handout - NDC Oslo 2018
Let's Talk About Mental Health Handout - NDC Oslo 2018Let's Talk About Mental Health Handout - NDC Oslo 2018
Let's Talk About Mental Health Handout - NDC Oslo 2018
 
Let's Talk About Mental Health - NDC Oslo 2018
Let's Talk About Mental Health - NDC Oslo 2018Let's Talk About Mental Health - NDC Oslo 2018
Let's Talk About Mental Health - NDC Oslo 2018
 
Let's Talk About Mental Health Handout - Nebraska.Code 2018
Let's Talk About Mental Health Handout - Nebraska.Code 2018Let's Talk About Mental Health Handout - Nebraska.Code 2018
Let's Talk About Mental Health Handout - Nebraska.Code 2018
 
Let's Talk About Mental Health - Nebraska.Code 2018
Let's Talk About Mental Health - Nebraska.Code 2018Let's Talk About Mental Health - Nebraska.Code 2018
Let's Talk About Mental Health - Nebraska.Code 2018
 
The Developer's Guide to Learning - 200OK 2018
The Developer's Guide to Learning - 200OK 2018The Developer's Guide to Learning - 200OK 2018
The Developer's Guide to Learning - 200OK 2018
 
The Developer's Guide to Learning - Codestock 2018
The Developer's Guide to Learning - Codestock 2018The Developer's Guide to Learning - Codestock 2018
The Developer's Guide to Learning - Codestock 2018
 
What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Codestock 2018
 
What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018
What Makes You DO Stuff? The Psychology of Motivation - Handout - Codestock 2018
 
Let's Talk About Mental Health - DevUp 2017
Let's Talk About Mental Health - DevUp 2017Let's Talk About Mental Health - DevUp 2017
Let's Talk About Mental Health - DevUp 2017
 
Let's Talk About Mental Health - Handout - DevUp 2017
Let's Talk About Mental Health - Handout - DevUp 2017Let's Talk About Mental Health - Handout - DevUp 2017
Let's Talk About Mental Health - Handout - DevUp 2017
 
The Developer's Guide to Learning Effectively
The Developer's Guide to Learning EffectivelyThe Developer's Guide to Learning Effectively
The Developer's Guide to Learning Effectively
 
The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...
The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...
The Saboteur in Your Retrospectives: How Your Brain Works Against You - The H...
 

Recently uploaded

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 

Recently uploaded (20)

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 

Git 201: A Deeper Look at Git (Nebraska.Code 2016)

Editor's Notes

  1. A quick overview of the basic structure for git – blobs are contained by trees, which contain each other, and which are contained by a commit. Blobs and trees are subatomic particles, composing the literally atomic commits. Like reality, almost all of the time, just knowing how atoms work is enough. Sometimes there’s effects that make no sense which require subatomic knowledge, but until those points it’s not necessary.
  2. Commits and commit topologies are the most important pieces of Git. The “atomic” commits form into “molecules” of topologies (typically called branches). The edges of the DAG are then the deltas.
  3. Here we have two commits, side by side, and we’re going to try to get a diff between the two. Commit 1 has three files – one in the root of the repo (File 1) and two in a directory (helpfully called Directory), which are File 3 and File 4. Commit 2 has three files – File 2 in the root and File 4 and File 5 in Directory. File 1 and 2 have the same blob: identically the same. Git will (sometimes) reinterpret this as a rename. File 3 is in Commit 1 but not in Commit 2, so it’s a delete. File 4 has different blobs in the two commits: it’s a change and a diff will be generated. File 5 is in Commit 2 but not in Commit 1: it’s an add.
  4. Time to go to the command line. Explain what you’re doing – committing data to be served via a service. In this case, MTG decks. Magic has different ways to play it, called “formats”. We’re tracking formats in different branches, because Reasons. New tournament – block format! So “git checkout –b mtg_2014_block” There are uncommitted changes, so “git add .” then “git commit –m “New decks.”” Talk about what a branch is – a pointer to a specific commit. A major tournament is over so we’re making a tag for it. “git tag –a SCG_Open_07_2014 –m “SCG Open Finalized Decks.”” Lightweight tags are just like (mostly) immutable branches. Annotated tags identify the tagger, the message, the date, and have a checksum. Talk about how a branch is actually a pointer to the entire DAG (directed acyclical graph) at that point. Two important things to realize: A branch is not constrained by anything – any branch can point to any commit (even HEAD or master!). The hash for each commit includes its parent – that means ANY history change will cascade through the DAG! We’ll see an example when we rebase.
  5. Different ways to get upstream in your repository… note that these work on ANY name for a commit! And they can be chained, like in the last example, since the valid names for a commit (sha1, tag, branch, etc) plus the ^ and ~ operators are a valid DSL.
  6. Anything valid in block format is valid in standard format, and so we need to merge those commits in: “git checkout mtg_2014_standard”, “git merge --no-ff mtg_2014_block” The “no-ff” option on a merge performs a guaranteed merge commit – by default git will try to avoid making a merge commit if it can, through doing what is basically a rebase. –no-ff forces it to make a merge commit instead.
  7. Different ways to get upstream in your repository… note that these work on ANY name for a commit! And they can be chained, like in the last example, since the valid names for a commit (sha1, tag, branch, etc) plus the ^ and ~ operators are a valid DSL.
  8. Example time yet again. We have a repo. We’ve been doing on-the-ground reporting for a local tournament and we’ve made a bunch of commits as we went so we didn’t lose anything. Could push this, but it looks terrible. What to do? Rebase! Interactive rebase – git pops open whatever editor we have configured. One row = one commit, in reverse order. It does this in an editor so you can copy and paste, and so you can change the command from “pick” to something else. Show the list in gvim next to the list in gitviz. There is one reorder, then two fixups, then one commit to reword and one commit to amend. What if there had been commits on block we had to worry about? Rebase to the rescue! Normal rebase. Call out how it applies each commit in turn. We could have done both at once (and we should have!) but I broke it apart for clarity.
  9. Example time again. git branch –D mtg_2014_legacy ./gcscript.sh See!
  10. A discussion of git workflows – I’m going to exclude the issues caused by external tools here and focus only on git. It – essentially – boils down to four types of git workflows. We’ll work through the same example with each of the four types – just as a visual, to avoid a lot of unnecessary typing.
  11. “Pure “ merge – using only the merge command (with --no-ff option). First merge develop into the feature to get the changes from Feature Branch B, accounting for conflicts if necessary. Then merge the feature branch into develop.
  12. “Pure” rebase – First rebase the feature branch onto current develop to pick up branch B’s changes. Then alter develop’s head ref to point to F, either via manually editing it (bad!) or a fast-forward merge.
  13. Rebase then merge – First rebase the feature branch onto current develop to pick up branch B’s changes. Then merge feature back into develop, using a --no-ff merge, to retain the merge commit.
  14. Rebase then squash – First rebase the feature branch onto current develop to pick up branch B’s changes. Then interactive rebase to squash to one or a few large commits. Then fast-forward merge feature into develop.
  15. ??????
  16. SO MUCH STUFF TO READ, you guys. Seriously.