commit means "행하다, 기록하다" in Korean.

  1. cd ..: Go back to directory MathTool

  2. make calculator.py which has 2 function (add, sub)

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8298debf-f1aa-4e52-8a39-3f2bfbb834be/Untitled.png

  1. Make license file which has text "Free" named License

  2. ls -al: See if there are two added files.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7659594d-86e2-413f-b362-d0dace3ad140/Untitled.png

I want to save now's MathTool directory status as new version of directory.

Before commit, we need to tell who committed so there is no misunderstanding between programmers. (name, email)

  1. git config user.name "garden"

  2. git config user.email "[email protected]"

git commit + commit message(-m) + "message"

  1. commit -m "Create calculator.py and License"

Error: nothing added to commit but untracked files present

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5f3e42c0-a378-4dde-9488-943b354ecfea/Untitled.png

we need to set files to commit before commit.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fd558f9a-205a-4a07-abd0-ff492fa446b1/Untitled.png

7-1) git add calculator.py

7-2) git add License