1.Make two commits
BeginnerCreate todo.txt containing Learn Git, and commit it with the message Add todo. Add a second line, Practise daily, commit that with the message Add habit, and print the history in one-line format, showing only the messages.
git init -q demo
cd demoShow hint
--format=%s prints only the subject of each commit.
Show solution
echo "Learn Git" > todo.txt
git add todo.txt
git commit -q -m "Add todo"
echo "Practise daily" >> todo.txt
git commit -q -am "Add habit"
git log --format=%sAdd habit
Add todo