DevOps Classroom Series – 02/Jul/2021

Git Continued

  • Lets create a new folder in the working tree/directory
  • note: To install and configure Windows Terminal Refer Here
  • Git will not detect empty folders as changes because git works with files and paths of files Preview
  • Lets add some file in the empty directory Preview
  • Now lets make some changes in existing files Preview
  • Untracked files are the newly added files which are not part of git local repository and modified are the changes done the the existing files which are part of git local repository
  • Now lets add all the changes to the staging area git add -A Preview Preview
  • Adding changes to staging area Preview
  • Changes can removed from staging area by using reset command. Lets remove the changes from some file in the staging area Preview
  • Now commit the remaining changes in the staging area Preview
  • git restore can be used to remove the modified changes from the working directory
  • Lets add 3 new files and add them to staging area. Preview
  • Now add one change in existing file and add it to staging area Preview
  • git reset –hard can be used to move the changes from staging area to working tree and clean the working tree as if no changes have been done. Preview
  • In git there is one more command called git reset --soft find out what is does?

Leave a Reply

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

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

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