DevOps Classroom notes 20/Mar/2025

Git

  • Git has five stages, initially we will be focusing on three areas
    Preview

Git Basic configuration

  • This configuration is done to set username and email id of the author
git config --global user.name "<your-username>"
git config --global user.email "<your-email>"

Our current focus areas

Preview

Local Repository

  • Create a new directory in your system and cd into it
  • Now execute git init to initialize a git repository
    Preview

Working Tree

  • This is area of work for us
  • In this we make changes, add/delete files etc
    Preview

Staging Area

  • This is area where the changes can be staged to be part of a commit

Other things to know

  • log: This represents the history of the repo.
  • status: This command represents what is your current status. For git the ideal status is working tree == local repo
  • Tracked and Untracked files: Tracked files represent the files which were part of any commit i.e. they are part of git repo, whereas untracked files are not part of the repo yet.

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