跳至主要内容

用 .gitignore 管理不需上傳遠端的檔案

停止追蹤特定檔案

 $ git rm --cached file_name.ext

以下是經常用 .gitignore 忽略的資料夾或檔案

# ESLint
.eslintrc.js
.eslintignore

# macOS
.DS_Store*

# npm
node_modules
.env

# .vscode
.vscode