Back to Home

Basics of GIT for web-dev beginners👶

Basics of GIT for web-dev beginners👶

What is Git?

  1. Git is a distributed version control system.
  2. The entire codebase and history is available on every developer’s computer, which allows for easy branching and merging.
  3. It is used as Version Control System (VCS) for tracking changes in computer files.
  • Distributed version control
  • Coordinates work between multiple developers
  • Who made what changes and when
  • Revert back at any time
  • Local & remote repos

CONCEPTS OF GIT

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

Difference Between Git & GitHub

GIT Installation

  • Linux(Debian) $sudo apt-get install git
  • Linux(Fedora) $sudo yum install git
  • Download for Mac
  • Download for Windows

Installation Process Steps:

  1. And then Continue Next > Next > Next > Install

After Installation We need To configure git using git bash

  1. git config --global user.name 'YourName'
  2. git config --global user.email 'YourEmail'

Git Commands


Getting & Creating Projects

Basic Snapshotting

Branching & Merging

Sharing & Updating Projects

Inspection & Comparison


            
Example:

Follow the lesson from Microsoft Web-Dev-For-Beginners course

Tags: git