CS211VersionControl.pptx

Download Report

Transcript CS211VersionControl.pptx

CS211
10/14/2013
ALI JAFFER
VIRTUAL MACHINES
Abstract the hardware of a single computer
Share the same hardware yet run several different
environments / OS concurrently
https://www.virtualbox.org/ - virtualization software package
http://distrowatch.com/ - News and feature lists of Linux and
BSD distributions
http://www.ubuntu.com/
http://www.linuxmint.com/
WHY VERSION
CONTROL
• Auto Backups – hard drive crash
• History – Change by Change log of your work
• Undo
• Easy Experimentation
• Team benefit
•
•
•
Synchronization – Easy to keep team members up to date
Accountability – know who made each change and why
Conflict Detection - Merge
Its better then Save As..
Or Drop box
Working on multiple computers (laptop, desktop, at work)
Companies use Version Control
DISTRIBUTED
VERSION CONTROL
GETTING STARTED
Repository – Database of code files
BitButcket - is a web-based hosting service for projects that
use either the Mercurial or Git version control systems
- one of the most popular systems currently being used
Git – Install Git by cmd: sudo apt-get install git
• git config --global user.name "FIRST_NAME LAST_NAME“
• git config --global user.email [email protected]
• Create Account and a repository - BitBucket
CHECKING IN CODE
Make a directory to contain your Repositories
-mkdir “repos”
Find clone on BitBucket
Switch to repositories
- cd ”repos”
Clone
- git clone
https://[email protected]/newuserme/bb101repo.git
Add, commit, push
- git add file
- git commit -m "adding file to repo“
- git push -u origin master
TFS AND EGIT
ADDITIONAL
RESOURCES
https://shib.lynda.com/Shibboleth.sso/InCommon?providerId
=https://shibboleth.uic.edu/shibboleth&target=https://shib.lyn
da.com/InCommon
http://cs50.tv/2012/fall/
http://academicearth.org/courses/data-structures/
https://www.khanacademy.org/