0% found this document useful (0 votes)
28 views

Git VSC

In the realm of modern software development, efficient version control systems are paramount for collaborative and iterative workflows. Among these, Git stands out as a cornerstone, revolutionizing the way teams manage, track, and collaborate on projects. This abstract delves into the multifaceted landscape of Git, encompassing its origins, core principles, key features, and evolving role in the software development ecosystem. Beginning with an exploration of Git's inception by Linus Torvalds in

Uploaded by

HELLO World
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Git VSC

In the realm of modern software development, efficient version control systems are paramount for collaborative and iterative workflows. Among these, Git stands out as a cornerstone, revolutionizing the way teams manage, track, and collaborate on projects. This abstract delves into the multifaceted landscape of Git, encompassing its origins, core principles, key features, and evolving role in the software development ecosystem. Beginning with an exploration of Git's inception by Linus Torvalds in

Uploaded by

HELLO World
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

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:
older – Revision Control System (RCS)
– Concurrent Versions System (CVS)
– Subversion (SVN)
newer – Git

Our focus
Version Control Hosting Services

• Enable sharing version control repos

• Internet/Web based

• Examples:
– SourceForge
– Bitbucket
– GitLab
– GitHub

Our focus
GitHub-User Perspective

You GitHub
GitHub-User Perspective

You GitHub

Working Dir
GitHub-User Perspective

You GitHub

Working Dir
Local
Repos
GitHub-User Perspective

You GitHub

Working Dir
Local Remote
Repos Repos
Using GitHub
to Collaborate GitHub

Remote
Repos
Questions to answer

How organized?
You GitHub

Working Dir
Local Remote
Repos 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
Working Dir
Local • log
Repos • switch/checkout
• branch
• merge
• …
How commit Before
works... HEAD

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

http://git-scm.com/book/
Remote Repo Operations

You GitHub

Local Remote • clone


Repos Repos • push
• pull
• fetch
• remote
• ...
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

You might also like