Team Engine Control Jon Stoker Brian Patterson Avishesh Dhakal 1.
Version Control Reducing risk with version control Jon Austin [email protected].
-
Upload
mervin-flowers -
Category
Documents
-
view
213 -
download
0
Transcript of Version Control Reducing risk with version control Jon Austin [email protected].
![Page 2: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/2.jpg)
Why Version Control?
Reduce Risk Facilitate Group Projects Allows Experimentation Personal Time Machine
![Page 3: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/3.jpg)
Risk Reduction
Distributed Code Base Central Repository Feature Retrieval
Do not forget to perform scheduled backups of your repository!
![Page 4: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/4.jpg)
Group Projects
Every gets a “current” copy of the full source Can assist in code review Don't Always have to wait on others
Merging - Not as bad as it sounds. Conflicts - Can be as bad as it sounds. Blame – As fun as it sounds!
Commit Often... But... NEVER commit broken code to the trunk.
![Page 5: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/5.jpg)
Allows Experimentation
Peace of mind I know my code is safe, what if I change
x?
Branching Try out new features without polluting
trunk Play in a sandbox
![Page 6: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/6.jpg)
Personal Time Machine
Remember when...? Whoops, I deleted X! Who changed that? Ask the log! Why did I change that? Ask the log!
![Page 7: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/7.jpg)
VCS Choices
SubVersion Stable and widely used Reasonably straightforward Cross Platform
Git Local change tracking
Many more
![Page 8: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/8.jpg)
Usage
Create your Repository Place your project in it Add your project (Registers it with SVN) Ignore (bin folder, class files, private settings) Commit (Writes your changes to SVN) Check for Modifications (See what changed) Update (Pull the latest changes)
![Page 9: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/9.jpg)
Terminology
Working Copy Trunk Tag Branch & Switch Revert Patch Diff/Compare
![Page 10: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/10.jpg)
Have a Process
Make your changes Update your working copy Resolve any conflicts Recompile and re-test! Commit your changes
![Page 11: Version Control Reducing risk with version control Jon Austin jon@jonhappens.com.](https://reader036.fdocuments.us/reader036/viewer/2022083008/56649f3d5503460f94c5c511/html5/thumbnails/11.jpg)
Free Hosting Resources
Rioux SVN - https://riouxsvn.com Free Private
Assembla - https://www.assembla.com Free Private
Version Shelf - https://www.versionshelf.com Free Student/Teacher accounts