The git init command is used to generate a new, empty Git repository or to reinitialize an existing one.
to add files to a new commit
It is used to record the changes in the repository.
Resets a file to how it was in the last commit
The git log command shows a list of all the commits made to a repository.
Shows all commits and the content of the files