SlideShare a Scribd company logo
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

More Related Content

PPTX
Git & Github
PPTX
Git and git workflow best practice
PPTX
Git Going w/ Git
PPTX
Git kelvin
PPTX
Git basics
PPTX
Up GitLab Presentation 2015
PPTX
GitLab 8.5 Highlights and Step-by-step tutorial
PDF
Introduction to GitHub
Git & Github
Git and git workflow best practice
Git Going w/ Git
Git kelvin
Git basics
Up GitLab Presentation 2015
GitLab 8.5 Highlights and Step-by-step tutorial
Introduction to GitHub

What's hot (20)

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

Viewers also liked (20)

PDF
Git & e git beginner workshop
PPTX
Git for beginners
PDF
Git & Github for beginners
PDF
Git for beginners
PPTX
Danza del sol
PDF
Opera mini use_and_user_behavior_white_paper
PPT
Bright Ideas
PPTX
Social Media: Let's Go Crazy from Weekend Startup School
PDF
NRG Tips - Mac OS & Zebra Printers
PPTX
Social Trends Shashi Bellamkonda
PPT
Flipflops
PDF
U L Budayakerja
PDF
My Presentation for PYP2013
PPT
Les riuades del segle XX
PPT
So What and Who Cares: Getting Your Message Right
PPT
Death of Balzac - Victor Hugo
PPT
CIB W78 2007 - Comparison of distance learning courses
PPS
Care Este
PPTX
Skype project
Git & e git beginner workshop
Git for beginners
Git & Github for beginners
Git for beginners
Danza del sol
Opera mini use_and_user_behavior_white_paper
Bright Ideas
Social Media: Let's Go Crazy from Weekend Startup School
NRG Tips - Mac OS & Zebra Printers
Social Trends Shashi Bellamkonda
Flipflops
U L Budayakerja
My Presentation for PYP2013
Les riuades del segle XX
So What and Who Cares: Getting Your Message Right
Death of Balzac - Victor Hugo
CIB W78 2007 - Comparison of distance learning courses
Care Este
Skype project
Ad

Similar to Git for Beginners (20)

PDF
Getting Into Git
PDF
Introduction to Git
PDF
Getting Started with Git
PPTX
Getting with GIT
PPTX
Version controll.pptx
PDF
Collaborative development with Git | Workshop
PPTX
Introduction to GitHub, Open Source and Tech Article
PPTX
Git and Github
PDF
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
PPTX
Git and github
PPT
Git presentation
PDF
Version Control System - Git
PPTX
Git and GitHub
PDF
Git Tutorial A Comprehensive Guide for Beginners.pdf
PPTX
Git-guidance for beginner- IT support.pptx.pptx
PPTX
Git-guidance for beginner- IT support.pptx
KEY
Let's Git this Party Started: An Introduction to Git and GitHub
PPTX
Luis atencio on_git
Getting Into Git
Introduction to Git
Getting Started with Git
Getting with GIT
Version controll.pptx
Collaborative development with Git | Workshop
Introduction to GitHub, Open Source and Tech Article
Git and Github
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
Git and github
Git presentation
Version Control System - Git
Git and GitHub
Git Tutorial A Comprehensive Guide for Beginners.pdf
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx
Let's Git this Party Started: An Introduction to Git and GitHub
Luis atencio on_git

Recently uploaded (20)

PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
L1 - Introduction to python Backend.pptx
PPTX
ai tools demonstartion for schools and inter college
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
top salesforce developer skills in 2025.pdf
PDF
Nekopoi APK 2025 free lastest update
PPTX
Essential Infomation Tech presentation.pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
System and Network Administration Chapter 2
Design an Analysis of Algorithms I-SECS-1021-03
How to Choose the Right IT Partner for Your Business in Malaysia
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
CHAPTER 2 - PM Management and IT Context
Operating system designcfffgfgggggggvggggggggg
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Odoo POS Development Services by CandidRoot Solutions
How to Migrate SBCGlobal Email to Yahoo Easily
L1 - Introduction to python Backend.pptx
ai tools demonstartion for schools and inter college
Upgrade and Innovation Strategies for SAP ERP Customers
top salesforce developer skills in 2025.pdf
Nekopoi APK 2025 free lastest update
Essential Infomation Tech presentation.pptx
Softaken Excel to vCard Converter Software.pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
System and Network Administration Chapter 2

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