a byte of git
weng.wei@zalora.sg
Friday, July 5, 13
• Linus Torvalds on git
• http://www.youtube.com/watch?
v=4XpnKHJAok8
Friday, July 5, 13
• "tinker and fix things that aren't broken" -
The greatest geek who ever lived
• http://theoatmeal.com/comics/tesla
Friday, July 5, 13
No Silver Bullet
Git solves problems with some price
Friday, July 5, 13
Git is hard
• Different concept
• More concept
• More command
• Not Windows friendly
Friday, July 5, 13
concepts
• changesetVS revision
• distributedVS centralized
• http://hginit.com/00.html
• a Mercurial tutorial by Joel Spolsky
• Subversion Re-education
Friday, July 5, 13
git staging
• demo
Friday, July 5, 13
git ci --amend
• Edit commit history is common
• sacred revision history in SVN
Friday, July 5, 13
git push
• commit is only local
• Must push to remote repo
Friday, July 5, 13
Why bother?
• staging / commit / amend / push
• vs svn commit
• Better change management !!!
Friday, July 5, 13
git stash
• Demo
Friday, July 5, 13
git branch
• very cheap to create
• 16 bytes written on local disk
• git flow
Friday, July 5, 13
Friday, July 5, 13
SVN upstream
Friday, July 5, 13
Problem!
• svn diff -r 354791:358048 > ../
SEAFAS-7136.diff
• Take hours
• SEAFAS-7136.diff
• 33361 lines
• Contains changes from trunk
Friday, July 5, 13
• How long does it take to upstream on
branch?
• What if you have 10 branches to do
upstream?
• What if upstream has conflicts?
Friday, July 5, 13
All SVN problems have
SVN solutions
We could do everything in SVN..
Friday, July 5, 13
BUT! We don’t have to
Friday, July 5, 13
git rebase
• Take seconds
• Error?
• git rebase --abort
• Or, test in a new branch
Friday, July 5, 13
Demo
Friday, July 5, 13
Awesome git usages
• host your blog
• deployment tools
• ...
Friday, July 5, 13
git for deployment
demo with heroku
Friday, July 5, 13
Q & A
Friday, July 5, 13
Access control
• Via ssh
• Read & Write access control
• Different repos with different access
• production repo
• staging repo
Friday, July 5, 13
GUI?
• Who needs GUI?
• Mac
• SourceTree
• Win & Linux
• TortoiseGit?
Friday, July 5, 13

More Related Content

KEY
Online.sg #9 "LLVM" Opening & Closing
KEY
Presentacion minitest
PDF
OWF14 : Project & Community driving track : The PostgreSQL Project - An examp...
PDF
Contribute to rails
KEY
PL/Parrot San Francisco Perl Mongers 2010/05/25
PPTX
Commitmas 2015
PPTX
Docker for everything
PDF
JRuby Hot Topics 2008-12-12
Online.sg #9 "LLVM" Opening & Closing
Presentacion minitest
OWF14 : Project & Community driving track : The PostgreSQL Project - An examp...
Contribute to rails
PL/Parrot San Francisco Perl Mongers 2010/05/25
Commitmas 2015
Docker for everything
JRuby Hot Topics 2008-12-12

Viewers also liked (8)

PPTX
Go for web
PDF
About Caching
PDF
谈谈缓存
KEY
My understanding of Git
PPTX
用PY实现"Go元编程"
PDF
Metaprogramming Go
PDF
Why use Go for web development?
PDF
Migrate PHP E-Commerce Site to Go
Go for web
About Caching
谈谈缓存
My understanding of Git
用PY实现"Go元编程"
Metaprogramming Go
Why use Go for web development?
Migrate PHP E-Commerce Site to Go
Ad

Similar to A byte of git (20)

PDF
Ten Things You Didn't Know Git And GitHub Could Do
PDF
Git - Eine Einführung
PDF
TYPO3 CMS 6.2 LTS Workshop T3DD13
PDF
How Git and Gerrit make you more productive
PDF
Mwalls velocity levelup
PDF
Hadoop Summit 2013 : Continuous Integration on top of hadoop
PPT
Fundamentals and basics of Git and commands
PDF
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
PDF
DevOpsDays Openstack Toolchains
PDF
Qt Design Patterns
PPTX
Git from SVN
ODP
Git: be social
PDF
Working with Git
PPTX
Git-guidance for beginner- IT support.pptx.pptx
PPTX
Git-guidance for beginner- IT support.pptx
PDF
Introduction to Git, DrupalCamp LA 2015
PPTX
Testing in GO
PDF
jQuery Mobile Jump Start
PPTX
How I become Go GDE
ZIP
Introduction to Git
Ten Things You Didn't Know Git And GitHub Could Do
Git - Eine Einführung
TYPO3 CMS 6.2 LTS Workshop T3DD13
How Git and Gerrit make you more productive
Mwalls velocity levelup
Hadoop Summit 2013 : Continuous Integration on top of hadoop
Fundamentals and basics of Git and commands
eSynergy Andy Hawkins - Enabling DevOps through next generation configuration...
DevOpsDays Openstack Toolchains
Qt Design Patterns
Git from SVN
Git: be social
Working with Git
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx
Introduction to Git, DrupalCamp LA 2015
Testing in GO
jQuery Mobile Jump Start
How I become Go GDE
Introduction to Git
Ad

More from Weng Wei (7)

PDF
Fastest golang ORM implemented with generic
PDF
Go for web
PDF
Python to go
PDF
论使用Python开发推荐引擎的优越性
PDF
Zalora php to_go
KEY
Sharding
KEY
Inside Zend Framework
Fastest golang ORM implemented with generic
Go for web
Python to go
论使用Python开发推荐引擎的优越性
Zalora php to_go
Sharding
Inside Zend Framework

Recently uploaded (20)

PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
August Patch Tuesday
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Tartificialntelligence_presentation.pptx
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Getting Started with Data Integration: FME Form 101
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
CloudStack 4.21: First Look Webinar slides
PDF
sustainability-14-14877-v2.pddhzftheheeeee
DOCX
search engine optimization ppt fir known well about this
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Zenith AI: Advanced Artificial Intelligence
PPT
What is a Computer? Input Devices /output devices
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Assigned Numbers - 2025 - Bluetooth® Document
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
August Patch Tuesday
Getting started with AI Agents and Multi-Agent Systems
Tartificialntelligence_presentation.pptx
WOOl fibre morphology and structure.pdf for textiles
Getting Started with Data Integration: FME Form 101
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
CloudStack 4.21: First Look Webinar slides
sustainability-14-14877-v2.pddhzftheheeeee
search engine optimization ppt fir known well about this
Univ-Connecticut-ChatGPT-Presentaion.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Enhancing emotion recognition model for a student engagement use case through...
Zenith AI: Advanced Artificial Intelligence
What is a Computer? Input Devices /output devices
DP Operators-handbook-extract for the Mautical Institute
Assigned Numbers - 2025 - Bluetooth® Document

A byte of git