Presentation is loading. Please wait.

Presentation is loading. Please wait.

Version Control with Git

Similar presentations


Presentation on theme: "Version Control with Git"— Presentation transcript:

1 Version Control with Git
Version Control with Git

2 Why track/manage different versions of code?

3 Backup: Undo or refer to old stuff

4 Branch: Maintain old release while working on new

5 Collaborate: Work in parallel with teammates

6 SWEBOK Knowledge Areas
Software Requirements Software Design Software Construction Software Testing Software Maintenance Software Configuration Management Software Engineering Management Software Engineering Process Software Engineering Models and Methods Software Quality Software Engineering Professional Practice Software Engineering Economics Computing Foundations Mathematical Foundations Engineering Foundations Today’s topic

7 Version Control Systems (VCSs)
Help you track/manage/distribute revisions Standard in modern development Examples: Revision Control System (RCS) Concurrent Versions System (CVS) Subversion (SVN) Git older Our focus newer

8 Version Control Hosting Services
Enable sharing version control repos Internet/Web based Examples: SourceForge Bitbucket GitLab GitHub Our focus

9 GitHub-User Perspective
You GitHub Working Dir

10 GitHub-User Perspective
You GitHub Working Dir Local Repos

11 GitHub-User Perspective
You GitHub Working Dir Local Repos Remote Repos

12 Using GitHub to Collaborate
Remote Repos GitHub

13 Questions to answer How organized? You GitHub What operations?
Working Dir Local Repos Remote Repos What operations?

14 Repo Organization

15 Commits (from oldest to newest; hashes as commit IDs)
Repo Organization Commits (from oldest to newest; hashes as commit IDs)

16 Snapshot of all files at each commit
Repo Organization Snapshot of all files at each commit

17 Repo Organization Branch (last commit)

18 Current Version in Working Dir
Local repos also have... HEAD Current Version in Working Dir

19 Local Repo Operations You init add/commit log … Working Dir
Local Repos

20 How commit works... Before HEAD

21 How commit works... After HEAD

22 Remote Repo Operations
You GitHub Working Dir clone push pull remote ... Local Repos Remote Repos

23 Learn the Core Local/Remote Operations
Demo Videos: tutorial/demo-04-git-local.html tutorial/demo-05-git-branches.html tutorial/demo-06-git-remote.html

24 Summary Version Control Systems Git and GitHub Repo Structure
Local/Remote Repo Operations Commit Semantics


Download ppt "Version Control with Git"

Similar presentations


Ads by Google