SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
Git for Beginners 
New England Drupal Camp 
November 1, 2014 
Rick Umali 
@rickumali 
http://tech.rickumali.com/ 
Slides!
Me and You 
● Me 
○ VIC-20 
○ Boston 
○ Data Janitor 
○ Git 
● You?
Book! 
Nov 1, 2014: drupalcftw (44% off) thru 
November 2014 
One Day Special: Nov 2, 2014: 
dotd110214au (50% off) 
44% 
Off! 
http://www.manning.com/umali
Version Control
Version Control
Git 
Git is an open source, distributed version 
control system designed for speed and 
efficiency. 
Freedom 
No “server” required 
Unique architecture
What We Will Do
Step 1. Create Repo 
% cd sites/all/modules 
% mkdir dumpstamp 
% cd dumpstamp 
% git init 
Git is a circle
Step 2. Add Code 
% vi README.txt 
% git add README.txt 
% git commit -m “First commit.” 
Two step process: 
add then commit
Step 3. Review 
% git log 
% gitk 
% git status
Repeat 2 and 3 
% vi dumpstamp.info dumpstamp.module 
% git status 
% git add . 
% git status 
% git commit (or git citool) 
% git diff
Tagging a Version 
% git tag -a v1.0 
% git tag -l -n 
% git show v1.0 
v1.0 
annotated 
Bookmarks
Repeat 2 and 3 
% vi dumpstamp.module 
% git status 
% git add . 
% git status 
% git diff 
% git commit 
v1.0
Go Back in Time 
% git checkout v1.0 
% git checkout master 
v1.0 
Detached HEAD
Fork in the Road (Branch) 
% git checkout -b time_stamp v1.0 
OR 
% git checkout v1.0 
% git branch time_stamp 
% git checkout time_stamp v1.0 
We’ve been working 
on a branch all along!
Add Code to New Branch 
% git branch 
% vi dumpstamp.module 
% git status 
% git diff 
% git commit -a 
v1.0 
Separate lines of 
code/development
Everything we’ve done so far was local… 
Let’s now bring others in our work
Collaborating 
you 
bob 
mary
Collaborating via GitHub 
GitHub mary 
bob 
you 
1 
2 
3
Creating a Repo on GitHub 
https://help.github.com/articles/create-a-repo/
Initial Push to GitHub 
% git remote add origin  
git@github.com:rickumali/REPO.git 
% git push -u origin --all 
% git push --tags 
you GitHub
Clone and Pull 
% git clone  
git@github.com:rickumali/REPO.git 
% cd mary 
% git branch --all 
GitHub mary 
Git is a circle
Collaborating via GitHub 
mary 
GitHub 
you 
git pull 
git push 
git push 
git pull
Git for Beginners 
Thank You! 
Rick Umali 
@rickumali 
http://tech.rickumali.com/
Homework: Merging 
% git checkout master 
% git merge time_stamp 
v1.0

Más contenido relacionado

La actualidad más candente

Gerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub pluginGerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub pluginLuca Milanesio
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHubRick Umali
 
GitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.comGitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.comB1 Systems GmbH
 
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)Pedro Moreira da Silva
 
GitLab webcast - Release 8.4
GitLab webcast - Release 8.4GitLab webcast - Release 8.4
GitLab webcast - Release 8.4GitLab, Inc
 
How to use any static site generator with GitLab Pages.
How to use any static site generator with GitLab Pages. How to use any static site generator with GitLab Pages.
How to use any static site generator with GitLab Pages. Ivan Nemytchenko
 
Stable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code ReviewStable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code ReviewLuca Milanesio
 
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...Edureka!
 
GitHub Talk - Cody Carnachan
GitHub Talk - Cody CarnachanGitHub Talk - Cody Carnachan
GitHub Talk - Cody CarnachanCody Carnachan
 
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)Evan Lin
 
Zero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review UpgradeZero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review UpgradeLuca Milanesio
 
Hacking Git and GitHub
Hacking Git and GitHubHacking Git and GitHub
Hacking Git and GitHubEdureka!
 
Golang taipei #45 10th birthday
Golang taipei #45 10th birthdayGolang taipei #45 10th birthday
Golang taipei #45 10th birthdayEvan Lin
 
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人Evan Lin
 
Gerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryGerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryLuca Milanesio
 

La actualidad más candente (20)

Gerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub pluginGerrit Code Review with GitHub plugin
Gerrit Code Review with GitHub plugin
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
GitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.comGitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.com
 
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
 
GitLab webcast - Release 8.4
GitLab webcast - Release 8.4GitLab webcast - Release 8.4
GitLab webcast - Release 8.4
 
How to use any static site generator with GitLab Pages.
How to use any static site generator with GitLab Pages. How to use any static site generator with GitLab Pages.
How to use any static site generator with GitLab Pages.
 
Stable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code ReviewStable master workflow with Gerrit Code Review
Stable master workflow with Gerrit Code Review
 
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
 
GitHub Talk - Cody Carnachan
GitHub Talk - Cody CarnachanGitHub Talk - Cody Carnachan
GitHub Talk - Cody Carnachan
 
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)iTHome Gopher Day 2017: What can Golang do?  (Using project 52 as examples)
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
 
Zero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review UpgradeZero-Downtime Gerrit Code Review Upgrade
Zero-Downtime Gerrit Code Review Upgrade
 
GitHub
GitHubGitHub
GitHub
 
Git'in in 15
Git'in in 15Git'in in 15
Git'in in 15
 
Hacking Git and GitHub
Hacking Git and GitHubHacking Git and GitHub
Hacking Git and GitHub
 
Project52
Project52Project52
Project52
 
Golang taipei #45 10th birthday
Golang taipei #45 10th birthdayGolang taipei #45 10th birthday
Golang taipei #45 10th birthday
 
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
iThome Chatbot Day: 透過 Golang 無痛建置機器學習聊天機器人
 
Git best practices 2016
Git best practices 2016Git best practices 2016
Git best practices 2016
 
Gerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-deliveryGerrit jenkins-big data-continuous-delivery
Gerrit jenkins-big data-continuous-delivery
 
Git'in on Windows
Git'in on WindowsGit'in on Windows
Git'in on Windows
 

Destacado

Git & e git beginner workshop
Git & e git beginner workshopGit & e git beginner workshop
Git & e git beginner workshopIgor Laborie
 
Danza del sol
Danza del solDanza del sol
Danza del solgaizfra
 
Opera mini use_and_user_behavior_white_paper
Opera mini use_and_user_behavior_white_paperOpera mini use_and_user_behavior_white_paper
Opera mini use_and_user_behavior_white_paperLiu Xing
 
Social Media: Let's Go Crazy from Weekend Startup School
Social Media: Let's Go Crazy from Weekend Startup SchoolSocial Media: Let's Go Crazy from Weekend Startup School
Social Media: Let's Go Crazy from Weekend Startup SchoolMichael Street
 
NRG Tips - Mac OS & Zebra Printers
NRG Tips - Mac OS & Zebra PrintersNRG Tips - Mac OS & Zebra Printers
NRG Tips - Mac OS & Zebra PrintersNRG Software
 
Social Trends Shashi Bellamkonda
Social Trends Shashi BellamkondaSocial Trends Shashi Bellamkonda
Social Trends Shashi BellamkondaShashi Bellamkonda
 
Flipflops
FlipflopsFlipflops
Flipflopsbecz_y
 
My Presentation for PYP2013
My Presentation for PYP2013My Presentation for PYP2013
My Presentation for PYP2013Michael Street
 
Les riuades del segle XX
Les riuades del segle XXLes riuades del segle XX
Les riuades del segle XXamestre4
 
So What and Who Cares: Getting Your Message Right
So What and Who Cares: Getting Your Message RightSo What and Who Cares: Getting Your Message Right
So What and Who Cares: Getting Your Message RightKivi Leroux Miller
 
Death of Balzac - Victor Hugo
Death of Balzac - Victor HugoDeath of Balzac - Victor Hugo
Death of Balzac - Victor Hugohonore
 
CIB W78 2007 - Comparison of distance learning courses
CIB W78 2007 - Comparison of distance learning coursesCIB W78 2007 - Comparison of distance learning courses
CIB W78 2007 - Comparison of distance learning coursesRobert Klinc
 

Destacado (20)

Git & e git beginner workshop
Git & e git beginner workshopGit & e git beginner workshop
Git & e git beginner workshop
 
Git for beginners
Git for beginnersGit for beginners
Git for beginners
 
Git & Github for beginners
Git & Github for beginnersGit & Github for beginners
Git & Github for beginners
 
Git for beginners
Git for beginnersGit for beginners
Git for beginners
 
Danza del sol
Danza del solDanza del sol
Danza del sol
 
Opera mini use_and_user_behavior_white_paper
Opera mini use_and_user_behavior_white_paperOpera mini use_and_user_behavior_white_paper
Opera mini use_and_user_behavior_white_paper
 
1
11
1
 
Bright Ideas
Bright IdeasBright Ideas
Bright Ideas
 
Social Media: Let's Go Crazy from Weekend Startup School
Social Media: Let's Go Crazy from Weekend Startup SchoolSocial Media: Let's Go Crazy from Weekend Startup School
Social Media: Let's Go Crazy from Weekend Startup School
 
NRG Tips - Mac OS & Zebra Printers
NRG Tips - Mac OS & Zebra PrintersNRG Tips - Mac OS & Zebra Printers
NRG Tips - Mac OS & Zebra Printers
 
Social Trends Shashi Bellamkonda
Social Trends Shashi BellamkondaSocial Trends Shashi Bellamkonda
Social Trends Shashi Bellamkonda
 
Flipflops
FlipflopsFlipflops
Flipflops
 
U L Budayakerja
U L  BudayakerjaU L  Budayakerja
U L Budayakerja
 
My Presentation for PYP2013
My Presentation for PYP2013My Presentation for PYP2013
My Presentation for PYP2013
 
Les riuades del segle XX
Les riuades del segle XXLes riuades del segle XX
Les riuades del segle XX
 
So What and Who Cares: Getting Your Message Right
So What and Who Cares: Getting Your Message RightSo What and Who Cares: Getting Your Message Right
So What and Who Cares: Getting Your Message Right
 
Death of Balzac - Victor Hugo
Death of Balzac - Victor HugoDeath of Balzac - Victor Hugo
Death of Balzac - Victor Hugo
 
CIB W78 2007 - Comparison of distance learning courses
CIB W78 2007 - Comparison of distance learning coursesCIB W78 2007 - Comparison of distance learning courses
CIB W78 2007 - Comparison of distance learning courses
 
Care Este
Care EsteCare Este
Care Este
 
Skype project
Skype projectSkype project
Skype project
 

Similar a Git for Beginners

Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitRick Umali
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with GitRick Umali
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for ArtistsDavid Newbury
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How tolanhuonga3
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control SystemVictor Wong
 
Getting Into Git
Getting Into GitGetting Into Git
Getting Into GitRick Umali
 
git-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfgit-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfmurad khan
 
Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentationMack Hardy
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With GitNick Quaranto
 
Introduction to Git.pptx
Introduction to Git.pptxIntroduction to Git.pptx
Introduction to Git.pptxgdscuds
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with gitDídac Ríos
 

Similar a Git for Beginners (20)

Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with Git
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for Artists
 
Git presentation
Git presentationGit presentation
Git presentation
 
GIT from n00b
GIT from n00bGIT from n00b
GIT from n00b
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How to
 
Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
 
Getting Into Git
Getting Into GitGetting Into Git
Getting Into Git
 
git-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfgit-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdf
 
Working with Git
Working with GitWorking with Git
Working with Git
 
How to use git without rage
How to use git without rageHow to use git without rage
How to use git without rage
 
Git training
Git trainingGit training
Git training
 
Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentation
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
Github
GithubGithub
Github
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Introduction to Git.pptx
Introduction to Git.pptxIntroduction to Git.pptx
Introduction to Git.pptx
 
Git github
Git githubGit github
Git github
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with git
 

Último

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
 
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
 
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
 
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.
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
+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
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
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
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
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
 
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
 
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
 
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
 
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
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 

Último (20)

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
 
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 ☂️
 
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 🔝✔️✔️
 
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 ...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
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
 
+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...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
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
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
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...
 
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
 
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
 
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
 
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 ...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 

Git for Beginners

  • 1. Git for Beginners New England Drupal Camp November 1, 2014 Rick Umali @rickumali http://tech.rickumali.com/ Slides!
  • 2. Me and You ● Me ○ VIC-20 ○ Boston ○ Data Janitor ○ Git ● You?
  • 3. Book! Nov 1, 2014: drupalcftw (44% off) thru November 2014 One Day Special: Nov 2, 2014: dotd110214au (50% off) 44% Off! http://www.manning.com/umali
  • 6. Git Git is an open source, distributed version control system designed for speed and efficiency. Freedom No “server” required Unique architecture
  • 8. Step 1. Create Repo % cd sites/all/modules % mkdir dumpstamp % cd dumpstamp % git init Git is a circle
  • 9. Step 2. Add Code % vi README.txt % git add README.txt % git commit -m “First commit.” Two step process: add then commit
  • 10. Step 3. Review % git log % gitk % git status
  • 11. Repeat 2 and 3 % vi dumpstamp.info dumpstamp.module % git status % git add . % git status % git commit (or git citool) % git diff
  • 12. Tagging a Version % git tag -a v1.0 % git tag -l -n % git show v1.0 v1.0 annotated Bookmarks
  • 13. Repeat 2 and 3 % vi dumpstamp.module % git status % git add . % git status % git diff % git commit v1.0
  • 14. Go Back in Time % git checkout v1.0 % git checkout master v1.0 Detached HEAD
  • 15. Fork in the Road (Branch) % git checkout -b time_stamp v1.0 OR % git checkout v1.0 % git branch time_stamp % git checkout time_stamp v1.0 We’ve been working on a branch all along!
  • 16. Add Code to New Branch % git branch % vi dumpstamp.module % git status % git diff % git commit -a v1.0 Separate lines of code/development
  • 17. Everything we’ve done so far was local… Let’s now bring others in our work
  • 19. Collaborating via GitHub GitHub mary bob you 1 2 3
  • 20. Creating a Repo on GitHub https://help.github.com/articles/create-a-repo/
  • 21. Initial Push to GitHub % git remote add origin git@github.com:rickumali/REPO.git % git push -u origin --all % git push --tags you GitHub
  • 22. Clone and Pull % git clone git@github.com:rickumali/REPO.git % cd mary % git branch --all GitHub mary Git is a circle
  • 23. Collaborating via GitHub mary GitHub you git pull git push git push git pull
  • 24. Git for Beginners Thank You! Rick Umali @rickumali http://tech.rickumali.com/
  • 25. Homework: Merging % git checkout master % git merge time_stamp v1.0