GIT for Beginners

Git - The Open Source Version Control System from Linus Torvalds.

Featured image

What is GIT

Git is a distributed revision control and source code management system with an emphasis on speed.

Git was initially designed and developed by Linus Torvalds for Linux kernel development.

Version Control System

Version Control System (VCS) is a software that helps software developers to work together and maintain a complete history of their work.

There are two types of VCS :-

Advantages of Git

Basic Workflow of GIT

Step 1. Modify/Add/Delete a file in the working area.
Step 2. Add these files to the staging area to be tracked(same as ade commit)
Step 3. Commit these files in the local repository with a message.
Step 4. Push these changes to remote repository (same as ade mergetrans)

Git Basic Operations Image

# adds file to the staging area
[bash]$ git add sort.c

# First commit
[bash]$ git commit –m “Added sort operation”

# adds file to the staging area
[bash]$ git add search.c

# Second commit
[bash]$ git commit –m “Added search operation”

Git - Lifecycle

General workflow is as follows ::