# Cheat Sheets

##### How Git Work

Git 檔案狀態：Modified/Untracked/Staged/Commited

1. **Modified/Untracked**: 檔案已修改，尚未執行 `git add`
2. **Staged**: 檔案已經 `git add`，尚未執行 `git commit`
3. **Commited**: 檔案已經 `git commit`

<p class="callout info">狀態 2 與 3 的檔案已經由 Git 控管內容變更。</p>

[![how_git_work.jpg](https://osslab.tw/uploads/images/gallery/2025-09/scaled-1680-/how-git-work.jpg)](https://osslab.tw/uploads/images/gallery/2025-09/how-git-work.jpg)

[![git_commands_work.jpeg](https://osslab.tw/uploads/images/gallery/2023-08/scaled-1680-/git-commands-work.jpeg)](https://osslab.tw/uploads/images/gallery/2023-08/git-commands-work.jpeg)

##### Git Commands

[![git_essential_commands.jpg](https://osslab.tw/uploads/images/gallery/2025-07/scaled-1680-/git-essential-commands.jpg)](https://osslab.tw/uploads/images/gallery/2025-07/git-essential-commands.jpg)

[![git_commands.jpg](https://osslab.tw/uploads/images/gallery/2025-04/scaled-1680-/NXwgit-commands.jpg)](https://osslab.tw/uploads/images/gallery/2025-04/NXwgit-commands.jpg)

[![12_git_commands.jpg](https://osslab.tw/uploads/images/gallery/2025-08/scaled-1680-/12-git-commands.jpg)](https://osslab.tw/uploads/images/gallery/2025-08/12-git-commands.jpg)

##### Git Fundamentals

[![git_fundamentals.jpg](https://osslab.tw/uploads/images/gallery/2025-08/scaled-1680-/git-fundamentals.jpg)](https://osslab.tw/uploads/images/gallery/2025-08/git-fundamentals.jpg)