Understanding Version Control with Git: A Comprehensive Overview
Explore the world of version control with Git, from tracking and managing different versions of code to the importance of backup, branching, and collaboration. Learn about Version Control Systems (VCSs), hosting services like GitHub, and how to use GitHub for collaboration. Discover the organizational structure of repositories and the significance of commits in Git. Dive deep into the realm of code management and collaboration through this informative journey.
Download Presentation
Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
E N D
Presentation Transcript
http://flic.kr/p/6oP7x7 Version Control with Git
Version Control Why track/manage different versions of code?
Version Control Why track/manage different versions of code? Backup: Undo or refer to old stuff Branch: Maintain old release while working on new Collaborate: Work in parallel with teammates
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 newer older Our focus
Version Control Hosting Services Enable sharing version control repos Internet/Web based Examples: SourceForge Bitbucket GitLab GitHub Our focus
GitHub-User Perspective GitHub You
GitHub-User Perspective GitHub You Working Dir
GitHub-User Perspective GitHub You Working Dir Local Repos
GitHub-User Perspective GitHub You Working Dir Remote Repos Local Repos
Using GitHub to Collaborate Working Dir Local Repos GitHub Remote Repos Working Dir Local Repos Working Dir Local Repos Local Repos Working Dir
Questions to answer How organized? GitHub You Working Dir Remote Repos Local Repos What operations?
Repo Organization http://git-scm.com/book/
Repo Organization Commits (from oldest to newest; hashes as commit IDs) http://git-scm.com/book/
Repo Organization Snapshot of all files at each commit http://git-scm.com/book/
Repo Organization Branch (last commit) http://git-scm.com/book/
Local repos also have... HEAD Current Version in Working Dir http://git-scm.com/book/
Local Repo Operations You init add/commit log switch/checkout branch merge Working Dir Local Repos
How commit works... Before HEAD http://git-scm.com/book/
How commit works... After HEAD http://git-scm.com/book/
Remote Repo Operations GitHub You clone push pull fetch remote ... Remote Repos Local Repos
Learn the Core Local/Remote Operations Demo Videos: https://scott-fleming.github.io/web-dev-rails-git- tutorial/demo-04-git-local.html https://scott-fleming.github.io/web-dev-rails-git- tutorial/demo-05-git-branches.html https://scott-fleming.github.io/web-dev-rails-git- tutorial/demo-06-git-remote.html
Summary Version Control Systems Git and GitHub Repo Structure Local/Remote Repo Operations Commit Semantics http://flic.kr/p/aCLor3