DevOps Classroomnotes 22/Apr/2022

Git Contd..

  • In Git We add changes to the Staging area from Working directory
  • New files are referred as untracked files as they were never part of the version control system (local repo)
    Preview
  • Now add the changes to the staging area
    Preview
  • Now commit the changes with some message
    Preview
  • Now lets delete a file
    Preview
    Preview
  • Git will not track empty directories. When you add files to the directory then git will consider the files added
    Preview
  • Some useful commands so far
    Preview
    Preview
    Preview
    Preview
  • Adding multiple changes to staging area and then commiting them
    Preview
  • Exercise:
    • Create a new folder called as cicd (anywhere in your system)
    • initialize the repository
    • create the following folders and add Readme.md in each folder
      • git
      • maven
      • msbuild
      • sonarqube
      • artifactory
      • jenkins
      • azuredevops
    • Now commit these changes
    • Now edit Readme.md in git and try to write one line about git (google and write) commit these changes
    • Now make the the change in each folder’s Readme.md as one commit
      Preview
      Preview
    • Now repeat the above by changing readme.md of each tool with one line description and commit it.
  • Next Steps:
    • Selective addition to staging area.
    • Removing the changes from staging area
    • Removing the changes from working tree
    • How git works.
    • Modifying commits.

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