a powerpoint on explaining git and github

WahidKhan209769 18 views 22 slides Jul 20, 2024
Slide 1
Slide 1 of 22
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22

About This Presentation

a powerpoint on explaining git and github, how git works and what are the different types of commands required for git and github


Slide Content

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

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
Our focus
older
newer

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
Working Dir
You GitHub

GitHub-User Perspective
Working Dir
Local
Repos
You GitHub

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

Remote
Repos
GitHubWorking Dir
Local
Repos Working Dir
Local
Repos Working Dir
Local
Repos Working Dir
Local
Repos
Using GitHub
to Collaborate

You GitHub
Working Dir
Questions to answer
Local
Repos
Remote
Repos
How organized?
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...
http://git-scm.com/book/
HEAD
Current Version
in Working Dir

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

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

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

Remote Repo Operations
Local
Repos
Remote
Repos
You GitHub
•clone
•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