MapleStory Cookie With Halo

๐Ÿ˜ผ Git

[Git]gitignore์ˆ˜์ • ํ›„, repository๋ฐ˜์˜ํ•˜๊ธฐ

๋‰ด์ด NUEY 2024. 10. 31. 17:29
๋ฐ˜์‘ํ˜•

 

๐Ÿ’ก 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

 


 

๋ฐ˜์˜๋ฒ•

 

Git Bash๋ฅผ ์—ด์–ด์ค๋‹ˆ๋‹ค.

 

workspaceํด๋”๋กœ ๋“ค์–ด๊ฐ€ ๊ฒฝ๋กœ๋ฅผ ๋ณต์‚ฌํ•ด์ค๋‹ˆ๋‹ค.

 

์ด์ œ ์•„๋ž˜๋Œ€๋กœ ํ•˜๋‚˜์”ฉ ์นœ ํ›„์— ์—”ํ„ฐ์ณ์ฃผ์„ธ์š”.

 

  1. cd "๊ฒฝ๋กœ"
  2. git rm -r --cached .
  3. git add .
  4. git commit -m "Remove ignored files from repository"

 

๋ฐ˜์‘ํ˜•