13
Leveraging the Git Source Control for Enterprise Projects

Starting with Git for Enterprises

Embed Size (px)

DESCRIPTION

Git is the new source control system getting widely adopted. This presentation starts with basics of Git technology and suggests strategies for Git adoption (e.g. developer workflow, project management, migration)

Citation preview

Page 1: Starting with Git for Enterprises

Leveraging the Git Source Control for Enterprise Projects

Page 2: Starting with Git for Enterprises

Presenter

Abhishek Kant / अभि�षे�क क�न्त

–Country Manager – India–B.E. MBA.–MCAD. Certified Scrum Master.–Satyam Computers. Microsoft Corp.–Technology. Marketing. –@abhishekkant.

Contact:[email protected] Phone: +91-124-4300987/ 996

Page 3: Starting with Git for Enterprises

Agenda

Integrating Project Management with Git

Git Branching

Collaboration using Remote Git

Working with Git Locally

Understanding Git

Page 4: Starting with Git for Enterprises

Understanding Git

• What is Git ?A Distributed Version Control System (DVCS)Local versioning system for all filesSnapshot StorageAll or nothing updates (no increments) –

• Installing & Configuring on Windowshttp://msysgit.github.io/http://git-scm.com/downloads

• Git Tools:Git GUIGitkKDiff3

Available for: • Windows• Linux• MacOS

Page 5: Starting with Git for Enterprises

Git Workflow

Add File Stage File

Commit Changes

et

Checkout Changes

Page 6: Starting with Git for Enterprises

Working with Git Locally

• Initializing a folder as a Git folder

• Git WorkflowAdding filesStaging & Committing ChangesRevert Change

• Viewing History & Diff• Cleaning files

Git cleanGit reset .gitignore

Git logGit status

Page 7: Starting with Git for Enterprises

Git Branching

• Start a Branch• Tags• Merging Branches

Fast Forward Merge3 Way Merge

Page 8: Starting with Git for Enterprises

Collaboration using Remote Git

• Define Remote Alias• Clone a Repo• Pull a Repo• Push a Repo• Git Protocols

FileGitSSHHTTP

Commercial Git Repository providers:• BitBucket• GitHub

Page 9: Starting with Git for Enterprises

Enterprise Git Workflows

• Central Workflow• Feature Branch Workflow• Pull Request Workflow

Page 10: Starting with Git for Enterprises

Integrating Project Management with Git

• Best of Management with Source Control

• Create individual feature branches for each feature

• Associate code commits with work items

• Update status from check-in comments

• Log time through the Git commit comments

#1234 status: "In Progress" time:1.5

Page 11: Starting with Git for Enterprises

Migration to Git – Simplified Version

Sync Complete Repo to local Git folder

Maintain One way sync from

Repo to Git

Make Git available

over Network

Cutout to Git

Page 12: Starting with Git for Enterprises

CI with Git

• Most CI environments support Git:• Jenkins• CruiseControl• Octopus• TeamCity

Page 13: Starting with Git for Enterprises

Questions