본문 바로가기

JAVA/기타

git - gitignore 적용 관련

반응형

http://www.sangron.com/untitled/20254


이 블로그 참고


gitignore 내용들


# Directories #
/build/
/bin/
target/
  
# 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
local.properties
.classpath
.settings/
.loadpath
/src/main/resources/rebel.xml
# External tool builders
.externalToolBuilders/
  
# Locally stored "Eclipse launch configurations"
*.launch
  
# CDT-specific
.cproject
  
# PDT-specific
.buildpath



gitignore 가 적용되지 않을 때 명령어


git rm -r --cached .
git add .
git commit -m "fix gitignore"



gitignore 이 수정되지 않고 구 버전의 규칙을 사용 할 때 명령어

git config --local core.excludefiles ~/.gitignore


반응형

'JAVA > 기타' 카테고리의 다른 글

맥에서 Java Compile 설치 및 사용법  (0) 2018.11.02
Word 파일을 PDF로 변환(전환)하는 방법  (0) 2016.07.06
STS 라인 보이게 설정방법  (0) 2016.07.05