Tsallaka zuwa abun ciki
Justice Tech School

Your First Commit

git add stages files and git commit saves a snapshot with a message.

Example
echo 'hello' > readme.txt
git add readme.txt
git commit -m 'Add readme'
git log --oneline | sed 's/^[0-9a-f]* //'

Result

[main (root-commit) 3281599] Add readme
 1 file changed, 1 insertion(+)
 create mode 100644 readme.txt
Add readme

Exercise

Commit with a message.

git commit  "msg"

Quiz Test

What does a commit hold?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.