Basics of GIT ?

What is Git ?

GIT is a Version Control System (VCS) for tracking changes in Computer Files.

  • Distributed Version Control System.
  • Coordinates work between multiple developers.
  • Who made what changes and when
  • Revert back at any time
  • Local and remote repos

Concepts of GIT

  • Keep track of your code history
  • Takes snapshots of your files
  • You decide when to take a snapshot by making a "commit"
  • You can visit any snapshot by making a commit
  • You can stage files before committing

BASICS COMMAND

  • $ git init

It initializes local Git Repository

  • $ git add

Add Files to index or Staging Area

  • $ git status

Check Status of Working Tree

  • $ git commit

Commit changes in Index

  • $ git push

Push to Local Repository to Remote Repository

  • $ git pull Pull Latest from Remote Repository

  • $ git clone Clone Repository into a New Directory


Installation

Github-Installation