DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

GIT: Git Basics

Learn Git Basics in GIT with practical examples.

Read time: 1 min • Words: 37
My Progress

GIT — Git Basics

Overview

Git is a version control system to track changes in your code.

What you'll learn

  • init repo
  • status
  • add/commit
  • remote push

Syntax

git init

Example

git init
git status
git add .
git commit -m "first commit"

# link remote
git remote add origin https://github.com/user/repo.git
git push -u origin main

Notes

  • Commit small logical changes.
  • Write clear commit messages.