1. add something in "calculator.py"

  2. git add calculator.py

  3. git status

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/04c2facc-08df-432e-874b-fca0eccb8175/Untitled.png

Want to cancel git add

git add <-> git reset

git add: add modified file to staging area

git reset: remove added file from staging area

  1. git reset calculator.py

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52b9b7db-4462-4a8e-8659-1de032f0b901/Untitled.png

  1. git status

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2d2fec94-6396-4159-84f3-d019cdc73fdf/Untitled.png

  1. remove codes in calculator.py

  2. git status

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c7132cf4-47d3-4da0-8bb6-ea33fc6c898c/Untitled.png