Viewing the history of git commits (git log)

Reading time: 30 minutes | Coding time: 10 minutes


Follow a few steps to get along with this tutorial:



Create a directory named git_view_history. Create a python file named hello.py.
Initialize git in this repository. Using command git init.
I have created 3 commits in the repository and it looks as follows:

commit 1:



git commit -m "first commit"

[master (root-commit) 981d5a8] first commit

1 file changed, 1 insertion( )

create mode 100644 hello.py



in this commit, the code simply prints hel...

 •  0 comments  •  flag
Share on Twitter
Published on June 04, 2020 05:49
No comments have been added yet.