Understanding Version Control with Git: A Comprehensive Overview

Slide Note
Embed
Share

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.


Uploaded on Jul 19, 2024 | 3 Views


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


  1. http://flic.kr/p/6oP7x7 Version Control with Git

  2. Version Control Why track/manage different versions of code?

  3. 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

  4. 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

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

  6. GitHub-User Perspective GitHub You

  7. GitHub-User Perspective GitHub You Working Dir

  8. GitHub-User Perspective GitHub You Working Dir Local Repos

  9. GitHub-User Perspective GitHub You Working Dir Remote Repos Local Repos

  10. Using GitHub to Collaborate Working Dir Local Repos GitHub Remote Repos Working Dir Local Repos Working Dir Local Repos Local Repos Working Dir

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

  12. Repo Organization http://git-scm.com/book/

  13. Repo Organization Commits (from oldest to newest; hashes as commit IDs) http://git-scm.com/book/

  14. Repo Organization Snapshot of all files at each commit http://git-scm.com/book/

  15. Repo Organization Branch (last commit) http://git-scm.com/book/

  16. Local repos also have... HEAD Current Version in Working Dir http://git-scm.com/book/

  17. Local Repo Operations You init add/commit log switch/checkout branch merge Working Dir Local Repos

  18. How commit works... Before HEAD http://git-scm.com/book/

  19. How commit works... After HEAD http://git-scm.com/book/

  20. Remote Repo Operations GitHub You clone push pull fetch remote ... Remote Repos Local Repos

  21. 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

  22. Summary Version Control Systems Git and GitHub Repo Structure Local/Remote Repo Operations Commit Semantics http://flic.kr/p/aCLor3

Related


More Related Content