Monday 5 November 2012

GIT : Introduction

GIT is an distributed modern version control system that designed to handle everything from small to very large projects with speed and efficiency. Git was designed and developed by Linus Torvalds for Linux kernel development. It has since been adopted by many other projects. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.

Version Control itself is a system that records changes to a file or set of files over time so that you can recall specific versions later. For examples, if you are a graphic or web designer and want to keep every version of an image or layout (which you would most certainly want to), a Version Control is a very wise thing to use. It allows you to revert files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and sort of it.

So what git could do for us :

- Git could reverts files back to a previous state that you've made.
- Revert the entire project back to a previous state.
- Compare changes over time.
- See who last modified something that might be causing a problem.
- If you screw things up or lose file, you can easily recover that files.

How to use GIT


1. Install GIT on your computer

sudo apt-get install git-core git-doc gitweb git-gui gitk git-email git-svn

2. Make any Folder version control repository with git


A Repository refers to a location of storage or a data structure that contains set of files and directories, historical records etc. you can get a Git project using two main approaches. The first takes an existing project or directory and imports it into Git. The second clones an existing Git repository from another server.

To make .git file, you need to go to your project directory even you can make an empty directory for testing git and type
 git init
This creates a new sub directory named .git that contains all your necessary repository files.

If you want to get a copy of an existing Git repository the command you need is
 git clone [url]
To clone the existing repository but with a new name, add the name after [url].

That's all for introduction of GIT. Cheers smile

reference :
1. http://en.wikipedia.org/wiki/Revision_control
2. http://www.git-scm.com/book/en/Getting-Started-About-Version-Control
3. http://blog.xeoscript.com/category/tutorials/git-tutorial/
4. https://samsonasik.wordpress.com/2012/11/05/practical-git-1-manage-repository-that-metadata-only/
Copyright © 2012 Clighter | Powered by Blogger