What Is Git?
What Is Git?
What is Git?
Version Control
Version control is a system that records changes to a file or set of files over
time so that you can recall specific versions later. It allows you to:
And more.
Distributed Version Control Systems
In a DVCS (such as Git, Mercurial, Bazaar
or Darcs), clients don’t just check out the
latest snapshot of the files: they fully
mirror the repository. Thus if any server
dies, and these systems were
collaborating via it, any of the client
repositories can be copied back up to the
server to restore it. Every clone is really a
full backup of all the data.
Git
Basics
Nearly Every Operation Is Local
Most operations in Git only need local files and resources to operate – generally
no information is needed from another computer on your network.
24b9da6552252987aa493b52f8696cd6d3b00373
The Three States
1. Untracked Files
2. Staged Files
3. Modified Files
The basic Git workflow goes something
like this:
You modify files in your working
directory.