DevOps Classroomnotes 09/Sep/2022

Git

  • Watch the classroom video for some references in this document

Scenario -1: For CI/CD Pipelines

  • Developer’s View:
    • Created/used the repository
    • Added changes
    • pushed changes
  • DevOps View:

    • Consider the change pushed at start creating
      • packages
      • sending packages to package repository
      • Create various test environments
      • Run automated tests
      • At any point if any thing fails notify the whole team.
  • Refer Here

Scenario 2: Creating Reusable assets as DevOps Engineer

First Steps into Git

  • Installing Git: Refer previous classroom notes
  • Verifying if the git is installed or not git --version
    Preview
  • The first step in Git is to create a local repository.
    • Create empty folder
    • cd into it
    • execute init command git init
      Preview
  • Best approach:

    • Start using cheatsheets
    • Refer Here for the sample cheatsheet.
  • Lets add a file to the repository
    Preview
    Preview

Three Areas of Git

  • In the local repo or local system which represents a developer’s system, We have three areas
    • Working Tree: This is where we make changes
    • Staging area: This is intermediate area before sending changes to local repo
    • Local Repo: Once the change is in local repo it will have history

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner