🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to Git Notes
Topic #2

Git Intro


What is Git?

Git is a popular version control system.

It was created by Linus Torvalds in 2005, and has been maintained by Junio Hamano since then.

It is used for:

  • Tracking code changes
  • Tracking who made changes
  • Coding collaboration

Key Git Concepts

  • Repository: A folder where Git tracks your project and its history.
  • Clone: Make a copy of a remote repository on your computer.
  • Stage: Tell Git which changes you want to save next.
  • Commit: Save a snapshot of your staged changes.
  • Branch: Work on different versions or features at the same time.
  • Merge: Combine changes from different branches.
  • Pull: Get the latest changes from a remote repository.
  • Push: Send your changes to a remote repository.

Working with Git

  • Initialize Git on a folder, making it a Repository
  • Git now creates a hidden folder to keep track of changes in that folder
  • When a file is changed, added or deleted, it is considered modified
  • You select the modified files you want to Stage
  • The Staged files are Committed, which prompts Git to store a permanent snapshot of the files
  • Git allows you to see the full history of every commit.
  • You can revert back to any previous commit.
  • Git does not store a separate copy of every file in every commit, but keeps track of changes made in each commit!

Why Git?

  • Over 70% of developers use Git!
  • Developers can work together from anywhere in the world.
  • Developers can see the full history of the project.
  • Developers can revert to earlier versions of a project.

Note: Most Git actions (like staging, committing, and viewing history) happen on your own computer. Only Push and Pull interact with remote servers like GitHub, GitLab, or Bitbucket to upload or download changes.


Change Platform:


What is GitHub?

  • Git is not the same as GitHub.
  • GitHub makes tools that use Git.
  • GitHub is the largest host of source code in the world, and has been owned by Microsoft since 2018.
  • In this tutorial, we will focus on using Git with GitHub.

Want to go beyond the notes?

Join CodingNow 2.0's Git course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Git Intro – FAQs

Quick answers about learning Git Intro in Git.

This free note from CodingNow 2.0 explains Git Intro in Git — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every Git topic on CodingNow 2.0, including Git Intro, is 100% free with no signup required.
With focused practice, most students grasp Git Intro in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now