Theory:
Advantage of version control systems like git is that it can record
changes.
‘Git log’ command is used to display all these changes that were made by the user in the repository. Log is a record of all the previous commits.
Procedure:
Step 1🡪Initialize a git
repository that will store all your commits.
$ git init
This will create a.git folder
Step 3🡪Before committing
any file it should be present in our staging area/Index ,add files to staging
area from working area using :
$ git add Textdoc1.txt
Step 4 Now check git
status to know if any untracked file is present on not using git command :
$ git status
Step 5 Commit command is
used to save your changes to your local repository
$ git commit -m “message”
Step 6 Git log will show
all the commits made by the author with their time.
After every commit the checksum value of the folder changes. Checksum is a
40digit hexadecimal number. Checksum is used to verify that the data
in that file has not been tampered with or manipulated, possibly by a malicious
entity