DevOps Classroom notes 22/Mar/2025

Git contd

  • Overview
    Preview

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
    Preview
  • 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>

Preview

  • 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 Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

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