# Day 1 - Git「Version Control System」 ### Git檔案狀態 1. Working 2. Staging 3. Repository ![](https://hackmd.io/_uploads/SJvzUDoU2.jpg) >by https://git-scm.com/book/zh-tw/v2/%E9%96%8B%E5%A7%8B-Git-%E5%9F%BA%E7%A4%8E%E8%A6%81%E9%BB%9E --- ## git 指令 git --version //查看版本![](https://hackmd.io/_uploads/ry3ZN_jUn.png) git --list // git config --global user.name “name” git config --global user.email “email” git congif --local rm #remove ![](https://hackmd.io/_uploads/SkKMQ_sUn.png) git status #看狀態 Working #untrack git add #加進暫存區 add . #. = here add --all #add all add -A #add all git restore #取消改動 Staging Area #added git commit --message “message” commit -m “message” “WIP” #work in progess Repository #commited git push Online git pull Download control + l #clear + w #word + u #all + r #history search 選擇 Repo