Patrick Cozzi University of Pennsylvania CIS Fall 2012

Slides:



Advertisements
Similar presentations
Ravi Mathur Updated December 5,  ODTBX uses Git (see the ODTBX Git Tutorial) ODTBXODTBX Git Tutorial ◦ SourceForge account needed (free). SourceForge.
Advertisements

Version Control CS440 – Introduction to Software Engineering © 2014 – John Bell Based on slides prepared by Jason Leigh for CS 340 University.
Simple Git Steve Pieper. Topics Git considerations and Slicer Git as if it were svn Git the way it is meant to be.
Version Control What it is and why you want it. What is Version Control? A system that manages changes to documents, files, or any other stored information.
Version Control Systems Phil Pratt-Szeliga Fall 2010.
Version Control with git. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall.
Version control Using Git 1Version control, using Git.
علیرضا فراهانی استاد درس: جعفری نژاد مهر Version Control ▪Version control is a system that records changes to a file or set of files over time so.
Git – versioning and managing your software L. Grewe.
GIT An introduction to GIT Source Control. What is GIT (1 of 2) ▪ “Git is a free and open source distributed version control system designed to handle.
Source Code Control CSE 3902 Matt Boggus. Source code control options for CSE 3902 Must use source code control that is integrated with Visual Studio.
Version control Using Git Version control, using Git1.
ITEC 370 Lecture 16 Implementation. Review Questions? Design document on F, feedback tomorrow Midterm on F Implementation –Management (MMM) –Team roles.
Source Control Primer Patrick Cozzi University of Pennsylvania CIS Spring 2012.
Version Control. How do you share code? Discussion.
…using Git/Tortoise Git
Git workflow and basic commands By: Anuj Sharma. Why git? Git is a distributed revision control system with an emphasis on speed, data integrity, and.
Information Systems and Network Engineering Laboratory II DR. KEN COSH WEEK 1.
Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction1.
By: Anuj Sharma. Topics covered:  GIT Introduction  GIT Benefits over different tools  GIT workflow  GIT server creation  How to use GIT for first.
QUICK START OF GITHUB Lin Shuo-Ren 2013/3/6 1. Why We Should Control The Version Although it rains, throw not away your watering pot. All changes should.
1 GIT NOUN \’GIT\ A DISTRIBUTED REVISION CONTROL AND SOURCE CODE MANAGEMENT (SCM) SYSTEM WITH AN EMPHASIS ON SPEED. INITIALLY DESIGNED AND DEVELOPED BY.
Version Control Systems. Version Control Manage changes to software code – Preserve history – Facilitate multiple users / versions.
Version Control Reducing risk with version control Jon Austin
Version Control System Lisa Palathingal 03/04/2015.
GIT.
Intro to Git presented by Brian K. Vagnini Hosted by.
GitHub and the MPI Forum: The Short Version December 9, 2015 San Jose, CA.
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
It’s not just an insult from Harry Potter!. What is Git? Distributed Version Control System (DVCS) – Compared to a Centralized Version Control System.
Information Systems and Network Engineering Laboratory I DR. KEN COSH WEEK 1.
Introduction to Git - Chirag Dani. Objectives Basics of Git Understanding different “Mindset of Git” Demo - Git with Visual Studio.
Technical Presentation by: David Spano. About Git (VCS) Simple Git Commands Branching Github Git GUI Summary.
Jun-Ru Chang Introduction GIT Jun-Ru Chang
Collaborative Git An introduction to Git with others
Version Control Systems
Source Code Control For CSE 3902 By: Matt Boggus.
CS5220 Advanced Topics in Web Programming Version Control with Git
Git primer Landon Cox January 19, 2017.
4 Version control (part 1)
Source Control Systems
I Don’t Git It: A beginner’s guide to git Presented by Mathew Robinson
Version Control Systems
Git and GitHub primer.
11 Version control (part 2)
LECTURE 2: Software Configuration Management
Version Control.
Discussion 11 Final Project / Git.
Version Control overview
Version Control with Subversion (SVN)
Version control, using Git
CS5220 Advanced Topics in Web Programming Version Control with Git
Development and Deployment
Version Control Systems
Storing, Sending, and Tracking Files Recitation 2
Source Code Management
LECTURE 3: Software Configuration Management
SIG: Open Week 1: GitHub Tim Choh.
Getting Started with Git and Bitbucket
Part 1: Editing and Publishing Files
Git CS Fall 2018.
Using Github and Github Organization in this Course
Introduction to Git and GitHub
GitHub and Git.
Version Control with Git and GitHub
CS122B: Projects in Databases and Web Applications Winter 2019
Version Control with Git
Git GitHub.
Introduction to The Git Version Control System
CS122B: Projects in Databases and Web Applications Spring 2018
Presentation transcript:

Patrick Cozzi University of Pennsylvania CIS 565 - Fall 2012 Source Control Primer Also called revision control or version control. Patrick Cozzi University of Pennsylvania CIS 565 - Fall 2012

Why Source Control? How do two people collaborate on the same code? Email? Dropbox? How do two hundred people collaborate?

Why Source Control? How do we backup our code? How do we change the same file? How do we get a history of changes?

Why Source Control? How do we make big or risky code changes without affecting the stable version? How do we work on new versions and still support old versions? Feature branches. Release branches.

Popular Tools P4 and SVN (subversion) are centralized. Git is distributed. Git is separate from github, but github is popular for hosting. Images from https://twitter.com/perforce, http://alagazam.net/, and https://twitter.com/GitHub

Centralized Server holds a centralized repository Clients have a revision This follows P4. The server has the entire repository (depot in P4) including history. Clients have a local snapshot.

Centralized This follows P4

Centralized This follows P4 Submit

Centralized This follows P4

Centralized Get Latest Revision

Centralized Modify/add/remove files Files can be read-only (P4) or not (SVN) Modify/add/remove files

Centralized Files can be read-only (P4) or not (SVN) Submit

Centralized Get Latest Revision

Distributed All machines have a full copy of the repository Repositories can be cloned Repositories can be pushed to and pulled from other machines

Distributed git init // Add files to directory git add * git commit –a –m ‘<description>’ Create a local repo Locally commit changes

Distributed Clone a remote repo git clone git@github.com:CIS565-Fall-2012/exampleProject.git Clone a remote repo

Distributed git commit –a –m ‘<description>’ Locally commit changes

Distributed git push Push changes to other repos

Distributed git pull Pull changes from other repos

Summary We are using git this semester - distributed source control Use source control for everything, not just code The initial pain will pay dividends for the rest of the semester and your career. Learn the command line, then use GUIs if desired.

Git Resources Create initial account - https://github.com/signup Get an edu account - https://github.com/edu Setup git - http://help.github.com/set-up-git-redirect/ Guide - http://rogerdudler.github.com/git-guide/ Cheat sheet - https://github.com/AlexZeitler/gitcheatsheet Join CIS 565 - https://github.com/CIS565-Fall-2012