DevOps Classroom notes 22/Mar/2025

Git contd

  • Overview

Lets create a new repo

  • Git doesnot consider empty folders as change. Git considers only files as changes
  • Every commit will have a unique commit id
  • In Git we have a concept of reference object, We have two reference objects
    • branch
    • tag
  • In Git by default we are working on a branch called as master
  • According to our understanding so far, A branch points to the latest commit
  • Commands used
git log
git status
git log --oneline
git restore --staged <file path>

  • Git internally uses SHA1 hash for everything
    • Commit: This is hash of changes, parent commit, author, date time, message
  • For git
    • file: blob
    • folder: tree
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design 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%%