본문 바로가기 메뉴 바로가기

Deve1oper

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Deve1oper

검색하기 폼
  • 분류 전체보기 (18)
    • Linux (2)
    • JAVA (0)
    • React & Vue (1)
    • Spring & Spring Boot (2)
    • AWS & DOCKER (6)
    • DATABASE (6)
    • AHK (0)
    • VBA (0)
    • Git (1)
  • 방명록

git gitignore (1)
Git / gitignore 변경 후 적용이 안될 때

application.properties 파일과 같이 중요한 정보 파일과 빌드 파일을 gitignore를 통해 제외목록에 올렸는데도 Sourcetree에서 커밋 대상파일로 떡하니 올라와있다. 이럴 때 캐시를 삭제하고 다시 커밋하면 된다. * 전체 캐시 삭제 git rm -r --cached . 사진과 같이 올라가있던 캐시들이 삭제된다. * 지정된 파일 캐시 삭제 git rm -r --cached 파일명 위와 같이 제외할 파일만 캐시를 지워도 된다. git add . git commit -m "clear" 다시 파일들을 commit 하면 gitignore에 작성했던 이미 올려진 application.properties를 포함한 제외 파일들이 변경된 것이 보인다. git push 원격 저장소를 업데이트한다.

Git 2022. 12. 18. 00:49
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • spring boot sh파일
  • Mapper namespcae
  • Spring Group
  • docker 명령어
  • docker context
  • SQL Mapper
  • nginx
  • gitignore 적용안됨
  • colima docker
  • aws git pull
  • mysql oracle
  • Docker
  • vue project
  • git gitignore
  • oracle db
  • mybatis
  • vue npm
  • Mybatis vs JPA
  • colima
  • 리눅스 메모리 캐시
  • aws spring boot
  • 메모리 삭제
  • linux 포트중복
  • gitignore 적용오류
  • docker --context
  • aws build
  • aws
  • aws git
  • Linux caches
  • Spring Artifact
more
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바