- code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. This tutorial teaches you GitHub essentials like repositories, branches, commits

1- Install as a package
2- Install via another installer
3- Download and compile the source code.
1- Mac OS x
- Terminal
The simplest method for installing Git on a Mac (for Mavericks 10.9 and above) is running Git from the Terminal. If Git is not installed, you will see a prompt for installation.
Git Website
You can also download Git by visiting this link and following the posted directions:
http://git-scm.com/download/mac
GitHub
A third option is to install Git as part of the GitHub for Mac install. GitHub is repository hosting service, which we will discuss in a future section.
Download GitHub for Mac via the following link:
2- windows
- Git Website
You can download Git by visiting this link and following the posted directions:
http://git-scm.com/download/win
GitHub
Install Git as part of the GitHub for Windows install.
3- linux
- Package Manager
You can try installing Git via your distribution’s inherent package management tool.
For Fedora:
$ sudo yum install git For Ubuntu:
$ sudo apt-get install git Git Website
To download Git for Linux, visit this link and follow the posted directions:
http://git-scm.com/download/linux
- Local Repository Structure The local Git repository has three components:
1- working Directory: The actual files reside here.
2- Index: The area used for staging
3- Head: Points to the most recent commit
- All files in a checked out (or working) copy of a project file are either in a tracked or untracked state.
1- Tracked
Tracked files can be modified, unmodified, or staged; they were part of the most recent file snapshot.
2- Untracked
Untracked files were not in the last snapshot and do not currently reside in the staging area.
*After cloning a repository, files have tracked status and are unmodified because they have been checked out but not edited.


