Distributed Version Control

Post on 20-Jan-2017

84 views 2 download

transcript

Distributed Version ControlGIT AND SALESFORCE

Audience• Software Developers• Best Practice enthusiast• Someone who does not like filthy code base• Learners

What's- in-it-for me?• Knowledge of Distributed Version Control• Knowledge of Git Commands• An excellent tool (Git)• A badge of pride to have acquired a best practice

knowledge• SDLC knowledge• Endow and Execute

Topics• What is VCS• Examples• What is CVCS• Examples• What is DVCS• Examples• What is Git

• Git Commands • Salesforce Development

and Git• Apache Ant• Deployment• Q&A

Version Control SystemVERSION CONTROL AND EXAMPLES

VCS Functionalities• Allows developers to work simultaneously• Does not allow overwriting each other’s changes.• Maintains a history of every version.• Allows rollback of code.

Different Types of VCS• Centralized Version Control Systems• Distributed Version Control Systems

Centralized Version Control Systems• What is CVCS ?• When to use CVCS.• Workflow of CVCS.• Relation between Salesforce and CVCS.

Centralized Version Control SystemsExamples

• SVN• Perforce• CVS

Distributed Version Control System• What is DVCS ?• When to use DVCS.• Workflow of DVCS.• Some Examples and business processes that use DVCS.

Distributed Version Control SystemExamples

• Git• Mercurial

Comparing Development with/without a DVCS powered environment.

WITH DVCS(GIT+ SALESFORCE)

• Can Perform Rollback• Developer Friendly• View Code History• Partially easy to use• Is of Industry Standard

WITHOUT DVCS(SALESFORCE DEVELOPER

CONSOLE)• Can not Perform Rollback• Not Developer Friendly• Can not View Code

History• Easy to use• Is not of Industry

Standard

Git Commands• git config• git init• git clone• git add• git rm• git commit

• git push • git pull• git fetch• git reset [commit]• git log• git merge

Implementation with Salesforce Development

Developer and SandboxEach developer gets his/her own Developer Sandbox

BranchingSprint and Features

Pushing and MergingCode Review and getting ready

Testing and DeploymentAnt Migration, Testing and Debugging.

UAT and Go LiveSprint Completion

Q&A

Thank You