3. What is Git
• Started in 2005
• Created by Linus Torvald to aid in Linux kernel
development
4. Distributed
source
control
• Every user has a full version of the code + all the history
Peer-to-peer approach
• A central server is only required when sharing changes
You don’t need to be connectedto the internet
Working copies function as remote backups
Faster because its local
6. Key
Concepts :
Snapshots
The way git keeps track of the
history
Essentially records what all your files
look like at a given point in time
Have the ability to go back and visit
any snapshot
7. Key Concepts:
Commit
The act of creating a
snapshot
A project is made up of a
bunch of commits
Contains 3 key pieces of
information
Information about how the
files changed
A reference to the commit
that came before it
A hash code name
8. Key Concepts:
Repositories
The act of copying a repo from a remote server is
called cloning
A collection of all the files and the history of those files
All your commits
Or a Repo for short
10. • Version control
• Push
• Pull
• Commit
• Makes collaboration easier
• Issues
• Pull requests (merge requests)
stands for : asking somebody to
pull your changes down locally
• Largest web-based git repository
hosting service
• Founded in 2008
• Recently acquired by Microsoft
14. GitHub workflow
1. Create a branch
• Branching is very different to for instance TFS => we are not creating a new directory
and copying code there
• Just a pointer => looks exactly like the masterversion