DevOps Classroom notes 02/July/2026

Git: Git is a version control system

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

  • 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 ReplyCancel reply

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

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%