GIT

[GitHub] gitignore파일 만들기

오선지♬ 2022. 1. 5. 19:00
728x90
반응형

github로 프로젝트를 관리하게 되면 여러명이서  commit을 하게된다. 

이럴 때 설정파일들까지 commit하게 되면 각자 PC의 설정이 다르기 때문에 후에 실행할때 문제가 될 수 있다.

그래서 불필요한 파일들은 commit대상에서 제외시키기 위해  '.gitignore' 파일을 만들어서 .git파일이 생성된 파일안에 넣어주기로한다.

https://www.toptal.com/developers/gitignore

 

gitignore.io

Create useful .gitignore files for your project

www.toptal.com

이 사이트에 들어가서 자신의 운영체제, 사용언어, 사용툴을 입력하여 생성을 누른다.

# Created by https://www.toptal.com/developers/gitignore/api/windows,java,eclipse
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,java,eclipse

### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# 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:
#.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*

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/windows,java,eclipse

이런식으로 소스가 나오면 전체 복사하여 메모장에 옮긴뒤 .classpath를 추가해준뒤

 .gitignore 파일을 만든다.

 

여기에 자기가원하는 것을 추가하여 만들어도 된다.

 

728x90
반응형