oh-my-git/levels/log/list

28 lines
463 B
Text
Raw Normal View History

2021-07-25 19:34:00 +02:00
title = List Log History
[description]
List the commits made in that repository in reverse chronological order; that is, the most recent commits show up first.
[setup]
rm -rf .git
git init
for i in 1 2 3 4
do
echo "M$i" > M$i.txt
git add M$i.txt
git commit -m "M$i"
done
[win]
#List the log
#test "$(git log | wc -l )" -ge 1
[congrats]
Well done! It is good to be able to view the repo's history and see what has been commited by you and others.