본문 바로가기

Tip

gitignore 사용 방법

 

gitignore: 프로젝트 작업시 원격 저장소에 관리되면 안되는 파일들이 실수로 github에 올라가지 않도록 관리하는 파일.

 

1. gitignore 사이트 접속

 

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

 

gitignore.io

Create useful .gitignore files for your project

www.toptal.com

 

 

 

2. 제외할 개발환경/언어 입력

 

 

3. 생성된 스크립트를 전체 복사

 

 

4. VS Code에 .gitignore 파일을 생성

 

 

5. 복사한 스크립트를 붙여넣고 저장