mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-15 19:04:57 +01:00
Add log level
This commit is contained in:
parent
929c634cc4
commit
3f6bf0d16f
3 changed files with 29 additions and 0 deletions
27
levels/log/list
Normal file
27
levels/log/list
Normal file
|
@ -0,0 +1,27 @@
|
|||
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.
|
1
levels/log/sequence
Normal file
1
levels/log/sequence
Normal file
|
@ -0,0 +1 @@
|
|||
list
|
|
@ -3,6 +3,7 @@ files
|
|||
branches
|
||||
merge
|
||||
index
|
||||
log
|
||||
remotes
|
||||
changing-the-past
|
||||
shit-happens
|
||||
|
|
Loading…
Reference in a new issue