DevOps Classroomnotes 21/Apr/2022

Learning Git

  • Approach
    • We will Start Git by Working on one-system
      • Git features
      • How it tracks
      • How Git Works
      • etc…
        Preview
    • We will be using git completely from command line.
    • Then we will add Distributed VCS (GitHub/Azure Source Repos/Code Commit)
    • How organizations use Git for their product lines

Getting Started with Git

  • Working with local repository:
    • Create an intitial repository
      • We would require empty folder/directory
      • Then initialize with git command
        Preview
        Preview
    • Make changes and query status
      Preview
    • Add changes to index/staging area
      Preview
    • Once we commit the changes the history will be maintained, To maintain history git requires
      • commiter emailid
      • commiter name
      • commit message
      • date time
    • Let configure the commiter email id and username (Once at a system level)
    • commit messsage is provided during commit and date time will be picked by git automatically
      Preview
      Preview
  • Few Areas of git relavent to local repo
    Preview
  • Lets modify the file and create a second commit
    Preview
    Preview
  • For using git commands refer cheatsheet of your choice
    Preview

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner