DevOps Classroom Series – 01/July/2021

Git Continued

  • Lets understand the basic process of Version Control with git.
  • Create a directory and some files and directories into it Preview
  • We need to add version control capabilities to this directory. In Git if we need a version control, we need to have a repository.
  • So to make this directory structure a repository (local repository) we need to initialize using git init Preview
  • Lets add the changes from working tree to staging area by using add comand Preview
  • Since commit requires username and email lets try to configure the username and email (This is one time activity)
git config --global user.name 'qtdevops'
git config --global user.email 'qtdevops@gmail.com'
  • Now lets commit the changes from staged area to local repository Preview Preview
  • The above process can be summarized as shown below Preview
  • Lets add some more changes as second commit Preview
  • Quick commands to explore
    • git init
    • git status
    • git add
    • git commit
    • git log

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