개발

인텔리제이 .gitignore 사용하기

snow-line 2020. 11. 29. 23:45
반응형

인텔리제이에서 git을 사용하다 보면 제외하고 싶은 디렉토리나 파일이 있을 때 gitignore에 추가하면 된다.

 

아래 내용을 복사한 후 프로젝트 최상단에 .gitignore로 파일명을 추가한다.

 

그리고 제외하고 싶은 디렉토리를 하단에 추가해주면 끝!!

# Created by https://www.gitignore.io/api/windows,intellij,java

### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

*.iml

## Directory-based project format:
.idea/

logs/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/issues.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# Eclipse

.metadata/
RemoteSystemTempFiles/
.project

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties


### node ###
#kr.wisestone.owl/src/main/webapp/bower_components/

*.log


### Java ###
*.class
target/

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*


### Node ###
node_modules/

 

반응형