๋ฐ์ํ
๐ก gitignore์๋ ์์คํ์ผ๋ง ์ฌ๋ผ๊ฐ์ผ ํ๊ณ , ์ปดํ์ผ๋ bin ๋ฑ์ด ์ฌ๋ผ๊ฐ๋ฉด ์๋ฉ๋๋ค.
๋ฌธ์ ๋ gitignore์ ์์ ํด๋ ๋ ํฌ์งํ ๋ฆฌ์ ์ปค๋ฐํ๋ ํ์ผ๋ค์ด ๋จ์์๋ค๋ ๊ฒ๋๋ค.
๋ฐ๋ผ์ gitignore ์์ ํ, ๋ ํฌ์งํ ๋ฆฌ์ ์ํ๋ ๋ถ๋ถ๋ง ๋ค์ ์ปค๋ฐํด์ผํฉ๋๋ค.
gitignore
์ํฌํ์ด์ค ํด๋ ์์ ๋ค์ด์์ต๋๋ค.
์๋์์ ํ์ํ ๊ฒ๋ง ๋ณต์ฌํด ์ฐ์๋ฉด ๋ฉ๋๋ค.
### Eclipse ###
/Servers/
Servers/
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
.classpath
.project
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# PyDev specific (Python IDE for Eclipse)
*.pydevproject
# CDT-specific (C/C++ Development Tooling)
.cproject
# CDT- autotools
.autotools
# Java annotation processor (APT)
.factorypath
# PDT-specific (PHP Development Tools)
.buildpath
# sbteclipse plugin
.target
# Tern plugin
.tern-project
# TeXlipse plugin
.texlipse
# STS (Spring Tool Suite)
.springBeans
# Code Recommenders
.recommenders/
# Annotation Processing
.apt_generated/
.apt_generated_test/
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
# Uncomment this line if you wish to ignore the project description file.
# Typically, this file would be tracked if it contains build/dependency configurations:
/Servers
#.project
### Eclipse Patch ###
# Spring Boot Tooling
.sts4-cache/
### 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*
### Maven ###
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
๋ฐ์๋ฒ
- cd "๊ฒฝ๋ก"
- git rm -r --cached .
- git add .
- git commit -m "Remove ignored files from repository"
๋ฐ์ํ
'๐ผ Git' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Git]์ด๊ฐ๋จ ๋ก์ปฌ ์ํฌ์คํ์ด์ค repository์ ์ฌ๋ฆฌ๊ธฐ (0) | 2025.01.02 |
---|---|
[Git]ํ๋ก๊ทธ๋จ ์งํ์ค ๋๋ฉด ํ์ผ์ด ๋ ๋ผ๊ฐ ์ ์์ต๋๋ค. (1) | 2025.01.02 |