intellij +springboot
[git] ignore 기본 셋팅
jeongyj
2024. 12. 24. 11:08
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Java class files
*.class
# Log files
*.log
# IDE files
.idea/
*.iml
# Build directories
/out/
target/
build/
# OS-specific files
.DS_Store
Thumbs.db
# Ignore node_modules
node_modules/
# Ignore environment files
.env
플러그인 설치 (선택 사항)
IntelliJ에서 .gitignore를 더 편리하게 관리하려면 Ignore Plugin을 설치할 수 있습니다.
- IntelliJ 메뉴에서 File → Settings(Mac에서는 Preferences).
- Plugins를 클릭한 후, Marketplace에서 Ignore 검색.
- .ignore 플러그인을 설치하고 IntelliJ를 재시작.
이미 Git에 추가된 파일은 .gitignore에 추가하더라도 무시되지 않습니다. 이 경우, 해당 파일을 Git에서 제거한 후 다시 커밋해야 합니다.
git rm --cached <파일명>
git rm -r --cached <폴더경로>
EX )
git rm -r --cached logs/