# [Git] .gitignore μ€μ
# 1οΈβ£ μ νμν κΉ?
GitμΌλ‘ νμκ΄λ¦¬λ₯Ό νλ©΄μ μ격μ μ₯μμ Pushνκ³ μΆμ§ μμ λΆνμν fileλ€ μ‘΄μ¬
- EX) API KEY κ°, log file, imi file, λ‘컬 κ°λ° νκ²½ settingμ κ΄λ ¨λ file λ±
.gitignore fileλ‘ λͺ©λ‘μ μμ±ν΄μ£Όλ©΄ Git μ μ₯μλ‘ Commit. Push λμ§ μλλ‘ ν΄μ€
# 2οΈβ£ κΈ°λ³Έμ μΈ μμ±λ°©λ²
*
Β λ λ¬Έμκ° μ‘΄μ¬νμ§ μκ±°λ ν κ° μ΄μμ΄ μλ κ²μ μλ―Έ**
Β λ νμ ν΄λλ₯Ό μλ―Έβ μλ₯Ό λ€μ΄Β
A/**/Z
λΒA/B/Z
Β ,ΒA/B/C/Z
Β ,ΒA/D/Z
Β λ±μ ννμ ν΄λλ€ νμνκ² λλ€.[]
Β λ μ€κ΄νΈ μμ ν κΈμλ₯Ό μλ―Έβ μλ₯Ό λ€μ΄
[abc]
: a λλ b λλ c λ²μ μ§μ κ°λ₯ β[0β9]
: 0λΆν° 9κΉμ§νμ€ Glob Patternμ μ¬μ©
β Shellμμ μ¬μ©νλ κ°λ΅ν λ μ κ· ννμ
/
Β λΆν° μμνλ κ²½λ‘ ν¨ν΄μ νμ λν ν 리 μμ λ°λ³΅μ μΌλ‘ μ μ©νμ§ μμ!
Β λ‘ μμνλ ν¨ν΄μ gitignoreμμ μ μΈ(무μλμ§ μμ!)곡백 λΌμΈ
λλΒ#
Β μΌλ‘ μμνλ λΌμΈμ κ·μΉ 무μ (μ£Όμκ³Ό κ°μ μλ―Έ)
# 3οΈβ£ gitignore μλ μμ± μ¬μ΄νΈ
μΈμ΄, μ΄μ체μ , IDE, λΉλ λꡬ μ λλ₯Ό μΆκ°
- μλμΌλ‘ gitignore λͺ©λ‘ μμ±ν΄μ£Όλ μ¬μ΄νΈ - gitignore.io (opens new window)
- java, macos, gradle, intellij μΆκ° (opens new window)
# Created by https://www.gitignore.io/api/java,macos,gradle,intellij
# Edit at https://www.gitignore.io/?templates=java,macos,gradle,intellij
### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr
# Sonarlint plugin
.idea/**/sonarlint/
# SonarQube Plugin
.idea/**/sonarIssues.xml
# Markdown Navigator plugin
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator/
### Java ###
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Gradle ###
.gradle
build/
# Ignore Gradle GUI config
gradle-app.setting
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
# Cache of project
.gradletasknamecache
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
### Gradle Patch ###
**/build/
# End of https://www.gitignore.io/api/java,macos,gradle,intellij