SlideShare a Scribd company logo
1 of 16
Download to read offline
Hi, my name is
Frankie Jarrett
from St. Joseph, MO
I’m a WordPress developer &
entrepreneur.
Version Control Using Git
Frankie Jarrett
@fjarrett
VERSION CONTROL
USING GIT
Version Control Using Git
Frankie Jarrett
@fjarrett
1. Tools you need (free)
2. Basic CLI commands
3. Basic Git commands
4. Setup and use a repo
Version Control Using Git
Frankie Jarrett
@fjarrett
Frankie, I want to use
version control but…
it’s too complicated.
Version Control Using Git
Frankie Jarrett
@fjarrett
Frankie, I want to use
version control but…
I’m set in my ways.
Version Control Using Git
Frankie Jarrett
@fjarrett
Frankie, I want to use
version control but…
I don’t know where to
start.
Version Control Using Git
Frankie Jarrett
@fjarrett
YOUR LIFE
CAN BE CHANGED
TODAY
Version Control Using Git
Frankie Jarrett
@fjarrett
Why use command line?
But I don’t do server ops!
GUI == Graphic User Interface
CLI == Command Line Interface
GUI’s are limiting. The command line is
freedom, control and speed.
After a while you will find yourself feeling
slowed down by your mouse and craving the
terminal.
Is there a GUI option for using Git?
As far as you’re concerned, no there isn’t.
Version Control Using Git
Frankie Jarrett
@fjarrett
POSIX
POSIX == Portable Operating System Interface
● Unix
● Linux
● Solaris
● BSD
● Darwin (Mac OS X)
POSIX basically means that these operating
systems use the same utility interface.
So the CLI commands look the same, and
work the same, across all of these systems.
Version Control Using Git
Frankie Jarrett
@fjarrett
Windows is not a POSIX-compatible
operating system, so it’s command line tools
aren’t quite the same.
If we were .NET developers, then we would
have to use Windows.
But we are WordPress developers, so it’s
likely that our web servers are running some
form of Linux.
The point of local development is to mimic
live environments as much as possible.
Still using Windows?
Windows != POSIX
Version Control Using Git
Frankie Jarrett
@fjarrett
Our Toolbox
Everything is free and comes in easy-to-install packages
Version Control Using Git
Frankie Jarrett
@fjarrett
● Xcode 5.1.1
○ Git
● iTerm2
We’ll be running these on OS X Mavericks (10.9.3)
● Change directories: cd wp-content/themes
● Shortcut to your home directory: cd ~
● Go up one directory: cd ..
● List: ls or ls -la
● Create a file: touch filename.txt
● Edit a file: nano filename.txt
● Clean up our terminal view: clear
Protip: Tab-completion is your best friend!
Easy POSIX Commands
A few CLI tips to hit the ground running
Version Control Using Git
Frankie Jarrett
@fjarrett
1. Add our Name and Email to the Git config on our computer
2. Create an SSH Public Key on our computer
3. Add our Public Key to our account profile on GitHub.com
4. Clone a repo onto our computer using SSH
5. Commit and push changes back to GitHub.com
Protip: Git != GitHub.com
Link to GitHub over SSH
SSH == Secure Shell
Version Control Using Git
Frankie Jarrett
@fjarrett
● See your changed files: git status
● Queue up files: git add -A
● Make a commit: git commit -m ‘Fixed a broken footer link’
● Push our commits to GitHub.com: git push
● Pull down the latest from GitHub.com: git pull
● Switch branches: git checkout branchname
Protip: Go bookmark GitRef.org as a handy reference!
Easy Git Commands
A few Git CLI tips to hit the ground running
Version Control Using Git
Frankie Jarrett
@fjarrett
LET’S
GIT STARTED
;-)
Version Control Using Git
Frankie Jarrett
@fjarrett
THANKS FOR
LISTENING
Version Control Using Git
Frankie Jarrett
@fjarrett
frankiejarrett.com
Follow me @fjarrett

More Related Content

What's hot

Cloud agnostic serverless with fn project
Cloud agnostic serverless with fn projectCloud agnostic serverless with fn project
Cloud agnostic serverless with fn projectTodor Todorov
 
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017Codemotion
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github SahilSonar4
 
GIT - DUG Antwerp
GIT - DUG AntwerpGIT - DUG Antwerp
GIT - DUG AntwerpKrimson
 
Around the PHP Community
Around the PHP CommunityAround the PHP Community
Around the PHP CommunityBen Ramsey
 
Formal verification of algorithms
Formal verification of algorithmsFormal verification of algorithms
Formal verification of algorithmsJordy Moos
 
Moving to Git
Moving to GitMoving to Git
Moving to GitTim Moore
 
Understanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesUnderstanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesMitali Bisht
 

What's hot (11)

Git
GitGit
Git
 
Cloud agnostic serverless with fn project
Cloud agnostic serverless with fn projectCloud agnostic serverless with fn project
Cloud agnostic serverless with fn project
 
Git introduction
Git introductionGit introduction
Git introduction
 
How to install and use git
How to install and  use gitHow to install and  use git
How to install and use git
 
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
Golang and Domain Specific Languages - Lorenzo Fontana - Codemotion Rome 2017
 
Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
 
GIT - DUG Antwerp
GIT - DUG AntwerpGIT - DUG Antwerp
GIT - DUG Antwerp
 
Around the PHP Community
Around the PHP CommunityAround the PHP Community
Around the PHP Community
 
Formal verification of algorithms
Formal verification of algorithmsFormal verification of algorithms
Formal verification of algorithms
 
Moving to Git
Moving to GitMoving to Git
Moving to Git
 
Understanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notesUnderstanding pseudo-version and Go1.14+ with notes
Understanding pseudo-version and Go1.14+ with notes
 

Viewers also liked

大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗
 
Recomercializacioncafe
RecomercializacioncafeRecomercializacioncafe
Recomercializacioncafeluna bella
 
It центр рыбасова. о компании
It центр рыбасова. о компанииIt центр рыбасова. о компании
It центр рыбасова. о компанииNatalia Medovnik
 
大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗
 
industria del cafe
industria del cafeindustria del cafe
industria del cafeluna bella
 
WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!Frankie Jarrett
 
Visiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick IntroductionVisiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick IntroductionBuddhist Architecture
 

Viewers also liked (10)

大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ
 
Mp 8086
Mp 8086Mp 8086
Mp 8086
 
Sample powerpoint
Sample powerpointSample powerpoint
Sample powerpoint
 
Recomercializacioncafe
RecomercializacioncafeRecomercializacioncafe
Recomercializacioncafe
 
It центр рыбасова. о компании
It центр рыбасова. о компанииIt центр рыбасова. о компании
It центр рыбасова. о компании
 
大阪 風俗|アインズ
大阪 風俗|アインズ大阪 風俗|アインズ
大阪 風俗|アインズ
 
Herbology
HerbologyHerbology
Herbology
 
industria del cafe
industria del cafeindustria del cafe
industria del cafe
 
WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!WP-CLI: Command and Conquer!
WP-CLI: Command and Conquer!
 
Visiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick IntroductionVisiting Borobudur: A Quick Introduction
Visiting Borobudur: A Quick Introduction
 

Similar to WordCamp KC 2014: Version Control Using Git

Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfGDSCKNUST
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersMartin Jinoch
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control SystemMd. Mujahid Islam
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfuzair
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with gitgdgjss
 
Git & version control crash course
Git & version control crash course Git & version control crash course
Git & version control crash course Eslam Saeed
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hubJasleenSondhi
 
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubAIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubNhi Nguyen
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GITGhadiAlGhosh
 
Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)chenghlee
 

Similar to WordCamp KC 2014: Version Control Using Git (20)

Beginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdf
 
BLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes DevelopersBLUG 2012 Version Control for Notes Developers
BLUG 2012 Version Control for Notes Developers
 
Presentation on Repository Control System
Presentation on Repository Control SystemPresentation on Repository Control System
Presentation on Repository Control System
 
GIT from n00b
GIT from n00bGIT from n00b
GIT from n00b
 
git KT .pptx
git KT .pptxgit KT .pptx
git KT .pptx
 
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdfGit Tutorial A Comprehensive Guide for Beginners.pdf
Git Tutorial A Comprehensive Guide for Beginners.pdf
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Git training
Git trainingGit training
Git training
 
GIT_Overview.
GIT_Overview.GIT_Overview.
GIT_Overview.
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
 
Git & version control crash course
Git & version control crash course Git & version control crash course
Git & version control crash course
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHubAIS Technical Development Workshop 3: Getting Started with Git and GitHub
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
GitHub Event.pptx
GitHub Event.pptxGitHub Event.pptx
GitHub Event.pptx
 
Hacktoberfest 2022
Hacktoberfest 2022Hacktoberfest 2022
Hacktoberfest 2022
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GIT
 
Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)
 

Recently uploaded

call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 

Recently uploaded (20)

call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 

WordCamp KC 2014: Version Control Using Git

  • 1. Hi, my name is Frankie Jarrett from St. Joseph, MO I’m a WordPress developer & entrepreneur. Version Control Using Git Frankie Jarrett @fjarrett
  • 2. VERSION CONTROL USING GIT Version Control Using Git Frankie Jarrett @fjarrett
  • 3. 1. Tools you need (free) 2. Basic CLI commands 3. Basic Git commands 4. Setup and use a repo Version Control Using Git Frankie Jarrett @fjarrett
  • 4. Frankie, I want to use version control but… it’s too complicated. Version Control Using Git Frankie Jarrett @fjarrett
  • 5. Frankie, I want to use version control but… I’m set in my ways. Version Control Using Git Frankie Jarrett @fjarrett
  • 6. Frankie, I want to use version control but… I don’t know where to start. Version Control Using Git Frankie Jarrett @fjarrett
  • 7. YOUR LIFE CAN BE CHANGED TODAY Version Control Using Git Frankie Jarrett @fjarrett
  • 8. Why use command line? But I don’t do server ops! GUI == Graphic User Interface CLI == Command Line Interface GUI’s are limiting. The command line is freedom, control and speed. After a while you will find yourself feeling slowed down by your mouse and craving the terminal. Is there a GUI option for using Git? As far as you’re concerned, no there isn’t. Version Control Using Git Frankie Jarrett @fjarrett
  • 9. POSIX POSIX == Portable Operating System Interface ● Unix ● Linux ● Solaris ● BSD ● Darwin (Mac OS X) POSIX basically means that these operating systems use the same utility interface. So the CLI commands look the same, and work the same, across all of these systems. Version Control Using Git Frankie Jarrett @fjarrett
  • 10. Windows is not a POSIX-compatible operating system, so it’s command line tools aren’t quite the same. If we were .NET developers, then we would have to use Windows. But we are WordPress developers, so it’s likely that our web servers are running some form of Linux. The point of local development is to mimic live environments as much as possible. Still using Windows? Windows != POSIX Version Control Using Git Frankie Jarrett @fjarrett
  • 11. Our Toolbox Everything is free and comes in easy-to-install packages Version Control Using Git Frankie Jarrett @fjarrett ● Xcode 5.1.1 ○ Git ● iTerm2 We’ll be running these on OS X Mavericks (10.9.3)
  • 12. ● Change directories: cd wp-content/themes ● Shortcut to your home directory: cd ~ ● Go up one directory: cd .. ● List: ls or ls -la ● Create a file: touch filename.txt ● Edit a file: nano filename.txt ● Clean up our terminal view: clear Protip: Tab-completion is your best friend! Easy POSIX Commands A few CLI tips to hit the ground running Version Control Using Git Frankie Jarrett @fjarrett
  • 13. 1. Add our Name and Email to the Git config on our computer 2. Create an SSH Public Key on our computer 3. Add our Public Key to our account profile on GitHub.com 4. Clone a repo onto our computer using SSH 5. Commit and push changes back to GitHub.com Protip: Git != GitHub.com Link to GitHub over SSH SSH == Secure Shell Version Control Using Git Frankie Jarrett @fjarrett
  • 14. ● See your changed files: git status ● Queue up files: git add -A ● Make a commit: git commit -m ‘Fixed a broken footer link’ ● Push our commits to GitHub.com: git push ● Pull down the latest from GitHub.com: git pull ● Switch branches: git checkout branchname Protip: Go bookmark GitRef.org as a handy reference! Easy Git Commands A few Git CLI tips to hit the ground running Version Control Using Git Frankie Jarrett @fjarrett
  • 15. LET’S GIT STARTED ;-) Version Control Using Git Frankie Jarrett @fjarrett
  • 16. THANKS FOR LISTENING Version Control Using Git Frankie Jarrett @fjarrett frankiejarrett.com Follow me @fjarrett