Switch to the master branch
git checkout master
Create a file, add some content and commit the changes
vi <new-file-name>.txt
git add <new-file-name>.txt
git commit -m "Added <new-file-name>.txt"
Display the last 5 commits
git log -n 5
Get a more concise output
git log -n 5 --oneline