사악미소
현대마법의 공방
사악미소
전체 방문자
오늘
어제
  • 분류 전체보기
    • Document
    • JavaScript
    • jQuery
    • Spring Web
      • Spring Framework
      • Spring Boot
    • Android
      • Java Code
      • Setting
    • iOS
      • Swift Code
      • Setting
    • PHP
      • Code
      • Setting
    • AWS
    • LINUX
      • Rocky Linux
      • CentOS
    • Node.js
    • Developer Tool
    • GIT
    • MAC
    • Scraping Document
    • MariaDB
    • WYSIWYG
    • Scouter
    • Docker
    • Planning
    • 용어정리
반응형

인기 글

최근 댓글

Programmer 사악미소.
사악미소

사악미소의 현대마법의 공방

카테고리 없음

[Git] Git에서 Gradle 및 Build 파일 제외하기: .gitignore 설정 가이드

2024. 12. 4. 11:14
728x90

 

 

위 이미지의 파일들을 Git에서 제외하기 위해 .gitignore 파일에 아래와 같이 설정을 추가하면 됩니다:

plaintext
코드 복사
# .gitignore
.gitignore
.gradle/
build/
위 설정은 다음을 의미합니다:

.gitignore: .gitignore 파일 자체는 예외적으로 Git에서 제외되지 않습니다.
.gradle/: .gradle 디렉터리 전체를 제외합니다.
build/: build 디렉터리 전체를 제외합니다.
.gitignore 파일이 프로젝트 루트 디렉터리에 위치하고 있는지 확인하세요. 이후, 다음 명령을 실행하여 변경된 .gitignore를 적용하세요:

git rm -r --cached .
git add .
git commit -m "Update .gitignore to exclude Gradle and build files"
728x90
    사악미소
    사악미소

    티스토리툴바