Git 형상관리 할때 이클립스 또는 인텔리j 설정파일이 노출이 되는데 매번 Git Commit and push 할때 설정 파일이 뜨게 돼
당황할 수 있고 실수로 불필요한 파일을 커밋 할수 있다.
해당경로는 프로젝트 폴더 들어가자마자 넣으시면 됩니다.
파일 다운 받으세요
사진과 같이 불필요한 파일들이 같이 뜰때 .gitignore을 설정해 두면 이클립스 또는 인텔리j 설정파일을 안뜨게 할수 있다.
*.iml
local.properties
# Gradle:
.idea/**/gradle.xml
.idea/**/libraries
# CMake
cmake-build-debug/
# Mongo Explorer plugin:
# Directories #
/build/
/bin/
target/
.idea
classes/
META-INF/
# OS Files #
.DS_Store
*.class
# Package Files #
*.jar
*.war
*.ear
*.db
######################
# Windows
######################
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
######################
# OSX
######################
.DS_Store
.svn
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
######################
# Eclipse
######################
*.pydevproject
.project
.metadata
bin/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
.classpath
.settings/
.loadpath
/src/main/resources/rebel.xml
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
######################
# Created by https://www.gitignore.io/api/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/dictionaries
# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/mongoSettings.xml
## File-based project format:
*.iws
## Plugin-specific files:
# 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
### 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
해당 .gitignore 추가 시 불필요한 파일을 없앨 수 있다. 위의 사진처럼
.gitignore 파일은 무시를 못하나보다 커밋을 해야될듯...
팀프로젝트 시에는 선임과 후임한테 말은 한 뒤 커밋을 하자
'IT·인터넷 > CODE' 카테고리의 다른 글
[java] ios 세로 사진 업로드시 가로로 나오는 문제 수정 metadata-extractor (0) | 2019.04.26 |
---|---|
sitemap 설정하기 (0) | 2019.02.14 |
spring java facebook 로그인 연동하기 (0) | 2017.09.29 |
ckeditor 파일 업로드 구현 (0) | 2017.09.28 |
댓글