from http://gary-rowe.com/agilestack/2012/10/12/a-gitignore-file-for-intellij-and-eclipse-with-maven/
A .gitignore file for Intellij and Eclipse with Maven
I often find myself having to fiddle about with ignore settings in various IDEs, so I thought I’d put together a simple general purpose solution that will ignore all the usual suspects for Intellij and Eclipse within a Maven reactor build (even works on a Mac).
Here it is:
# Eclipse
.classpath
.project
.settings/
# Intellij
.idea/
*.iml
*.iws
# Mac
.DS_Store
# Maven
log/
target/
If you place this in .gitignore
the root directory of your project, the ignore settings will be applied to all sub-directories automatically.
Finally, no more accidental commits of /target
into the repo.
You may also want know how to purge the commit history to get rid of those old bloating commits, or perhaps an accidental commit of a password. If so the GitHub people have written an excellent tutorial.
위의 말처럼 ... 인텔리제이라면 이미 해당 프로젝트에 .ignore 가 있을거다. 거기가면 셋팅만 적용되어있는데 거기에 target 도 넣어라
'IT > 자동화툴' 카테고리의 다른 글
Could not install Gradle distribution from .... (0) | 2017.10.11 |
---|---|
https://colorscripter.com (0) | 2017.09.13 |
Redmine in os x .. 설치 (0) | 2014.07.17 |
sublime text 2 패키시 설치 , json 플러그인? 예... (0) | 2013.04.19 |
intelliJ 프로젝트를 gitHub로~ (0) | 2012.03.27 |