DevOps Classroom notes 02/July/2026

Git: Git is a version control system

  • Stages:
    • Working directory
    • Staging area
    • Local repo

stages of git

  • Create a local repo
  git init
  • The default branch is master/main

  • Move files from the working directory to the staging area

  git add <file path>
  • Add all changed files and folders to the staging area
  git add .
  • Commit files from staging to the local repo
  git commit -m "first commit"
  • Check the status of the working directory and staging area
  git status
  • Check the local repo log and commit IDs
  git log

Git global configuration:

  • Username
  • Email
git config --global user.name "admin"
git config --global user.email admin@qt.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube