SlideShare a Scribd company logo
Git Workflow in Agile
Development
Codemy.net
presents
What is Git?
Source Code Management
Why Git?
Better Team Management
More Efficient Workflow
More Control
Basic Git Commands
git init - setup git in current directory!
git status - view current status!
git add . - adds files to staging area!
git branch [branch-name] - creates branch!
git checkout [branch-name] - change working branch to specified one!
git commit -m ‘message’ - creates a commit from staging!
git merge [branch-name] - merges specified branch into current!
git log - prints out a log of past commits
git init
creates a .git folder in the current directory
Master
git add .
staging
staging
git add .
git commit -m ‘changed color on button’
stagingcommit
master
stagingcommit
git branch develop
master
stagingcommit
develop
git checkout develop
stagingcommit
master
develop
git commit -am ‘blah blah’
stagingcommit
master
develop
commit
stagingcommit
master
develop
commitcommit
git commit -am ‘blah blah again’
stagingcommit
master
develop
commitcommitcommit
git commit -am ‘blah blah and again’
oh noes! something went wrong
with the site in production!
no problem!
stagingcommit
master
develop
commitcommitcommit
master
develop
git checkout master
stagingcommitcommitcommitcommit
master
git checkout -b hotfix
stagingcommitcommitcommitcommit
checkout -b means create a new
branch and switch to that branch
git commit -am ‘fix bug in production’
master
stagingcommitcommitcommitcommit
com
m
it
master
git checkout master
stagingcommitcommitcommitcommit
com
m
it
master
stagingcommitcommitcommitcommit
com
m
it
git merge hotfix
master
stagingcommitcommitcommitcommit
com
m
it
git branch -d hotfix
develop
ok we’re done developing our
feature lets merge and deploy
master
stagingcommitcommitcommitcommit
com
m
it
develop
master
commitcommitcommitcommit
com
m
it
develop
git merge develop
com
m
it
git branch -d develop
master
commitcommitcommitcommit
com
m
it
com
m
it
master
commitcommitcommitcommit
com
m
it
com
m
it
staging

More Related Content

PDF
Git and Git Workflow Models as Catalysts of Software Development
PDF
Git Ready! Workflows
PPTX
The development workflow of git github for beginners
PDF
Git workflow step by step
PPT
Git workflows
PDF
Git best practices workshop
PDF
COSCUP 2016: Project 52 每週一個小專案來學習 Golang
KEY
40 square's git workflow
Git and Git Workflow Models as Catalysts of Software Development
Git Ready! Workflows
The development workflow of git github for beginners
Git workflow step by step
Git workflows
Git best practices workshop
COSCUP 2016: Project 52 每週一個小專案來學習 Golang
40 square's git workflow

What's hot (20)

PDF
Modern Web 2016: Using Golang to build a smart IM Bot
PPTX
Git workflows
PDF
Collaborative development with git
PPTX
Git Pull Requests
PDF
Git-flow workflow and pull-requests
PPTX
A successful Git branching model
PPTX
Using Git to Organize Your Project
KEY
How we git - commit policy and code review
PDF
Git best practices 2016
PDF
Project52
PDF
Gopher Taiwan Gathering #16: Build a smart bot via Golang
PPTX
Git & Github
PDF
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
PPTX
GitLab 8.5 Highlights and Step-by-step tutorial
PDF
Git slides
PPTX
A painless self-hosted Git service: Gitea
PDF
Git for Beginners
PPTX
Continuous integration using atlassian bamboo
PPTX
My Git workflow
PDF
Trunk based development
Modern Web 2016: Using Golang to build a smart IM Bot
Git workflows
Collaborative development with git
Git Pull Requests
Git-flow workflow and pull-requests
A successful Git branching model
Using Git to Organize Your Project
How we git - commit policy and code review
Git best practices 2016
Project52
Gopher Taiwan Gathering #16: Build a smart bot via Golang
Git & Github
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
GitLab 8.5 Highlights and Step-by-step tutorial
Git slides
A painless self-hosted Git service: Gitea
Git for Beginners
Continuous integration using atlassian bamboo
My Git workflow
Trunk based development
Ad

Similar to Git workflow in agile development (20)

PPTX
01 - Git vs SVN
PPTX
Git 101 - An introduction to Version Control using Git
PDF
Git training v10
PDF
Git training cheat sheet
PPTX
Git basics : a beginner's guide
PDF
Git basics for beginners
PPT
Learn Git Basics
PPTX
Bitbucket as a code server and pmt
PDF
Collaborative development with Git | Workshop
PDF
devops-complete-notes-2.pdf
PPSX
Advanced Web Development in PHP - Code Versioning and Branching with Git
PDF
Git Workflow
PPTX
GDSC - Introduction to GIT
PPTX
Getting Git...before it gets you
PDF
Github git-cheat-sheet
PPT
Git and fundamentals
PDF
Git-r-Done
PDF
test
PDF
Git cheat-sheet-education
PDF
Techmoneyguide
01 - Git vs SVN
Git 101 - An introduction to Version Control using Git
Git training v10
Git training cheat sheet
Git basics : a beginner's guide
Git basics for beginners
Learn Git Basics
Bitbucket as a code server and pmt
Collaborative development with Git | Workshop
devops-complete-notes-2.pdf
Advanced Web Development in PHP - Code Versioning and Branching with Git
Git Workflow
GDSC - Introduction to GIT
Getting Git...before it gets you
Github git-cheat-sheet
Git and fundamentals
Git-r-Done
test
Git cheat-sheet-education
Techmoneyguide
Ad

Recently uploaded (20)

PDF
medical staffing services at VALiNTRY
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPT
JAVA ppt tutorial basics to learn java programming
PPTX
L1 - Introduction to python Backend.pptx
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
System and Network Administraation Chapter 3
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPT
Introduction Database Management System for Course Database
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
DOCX
The Five Best AI Cover Tools in 2025.docx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
AI in Product Development-omnex systems
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
top salesforce developer skills in 2025.pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
PTS Company Brochure 2025 (1).pdf.......
medical staffing services at VALiNTRY
How to Choose the Right IT Partner for Your Business in Malaysia
VVF-Customer-Presentation2025-Ver1.9.pptx
Upgrade and Innovation Strategies for SAP ERP Customers
JAVA ppt tutorial basics to learn java programming
L1 - Introduction to python Backend.pptx
How to Migrate SBCGlobal Email to Yahoo Easily
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
System and Network Administraation Chapter 3
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Introduction Database Management System for Course Database
ISO 45001 Occupational Health and Safety Management System
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
The Five Best AI Cover Tools in 2025.docx
Odoo POS Development Services by CandidRoot Solutions
AI in Product Development-omnex systems
Wondershare Filmora 15 Crack With Activation Key [2025
top salesforce developer skills in 2025.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PTS Company Brochure 2025 (1).pdf.......

Git workflow in agile development