- Take me to Practice Test
Solutions to practice test - git log
-
We have initialised git repo in /home/sarah/story-blog. Check git log command output in that directory
Details
$ cd /home/sarah/story-blog $ git log -
Run git add .;git commit -m "Added the lion and mouse story"
Details
$ git add . $ git commit -m "Added the lion and mouse story" -
Check git log command output in that directory
Details
$ git log -
Which info is not displayed in git log?
Details
List of changed files -
You can list the changed files as well using the --name-only option with the git log command
Details
$ git log --name-only -
Which branch has the changes been committed to?
Details
$ git log -
Who is the Author of the commit in git repo?
Details
$ git log -
Check git log where commit message is Added a new story
Details
$ git log --name-only -
What is the option for git log command to display the logs in compact way (one log per line)?
Details
$ git log --oneline -
Go to cd /home/sarah/learning-app-ecommerce and run git log
Details
$ cd /home/sarah/learning-app-ecommerce $ git status $ git log -
You may list the last few commits alone using the --max-count option like this git log -n 3 or git log --max-count 3
Details
$ git log -n 3 $ git log --max-count 3 -
Go to cd /home/sarah/learning-app-ecommerce and run git log -n 1
Details
$ git log -n 1 $ git log --max-count 1 -
Go to cd /home/sarah/learning-app-ecommerce and run git log --name-only and look for the commit that changed the file js/theme.js
Details
$ cd /home/sarah/learning-app-ecommerce $ git log --name-only