Git Introduction

Git is primarily used for source-code management in software development, but it can be used to keep track of changes in any set of files.

Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contributing to its initial development.

Git Basics

Git uses Snapshots, Not Differences

Git works in the different way as compare to VCS(CVS, Subversion, Perforce, Bazaar etc.).

Delta-based version control
Most of the other VCS store information files and the changes made to each file over the time.

Every time one commits your project; Git takes a picture of what all files look like at that moment and store a reference to that snapshot.

Git organises the data as a stream of snapshots.

Git Has Integrity

Git generates check-summed for every commit. This ensures that no change can be made without Git Knowing about it.

States of Git

Committed:- Data is stored in the database.
Modified:- Files are changed but not place in the database.
Staged:- Files are marked as modified in the current version and will go into next commit.

Do read this

Posted in Git.