Recent Posts
Recent Comments
Link
06-30 12:53
Today
Total
관리 메뉴

삶 가운데 남긴 기록 AACII.TISTORY.COM

git 추적 중지 본문

DEV&OPS/Linux & Cloud

git 추적 중지

ALEPH.GEM 2022. 11. 1. 13:12

이미 푸시 해버린 폴더나 파일들을 git에서 추적 중지하려면 git ignore 으로는 되지 않습니다.

이미 푸시 된 폴더나 파일의 추적을 중지 하려면 아래와 같이 입력합니다.

$ git update-index --skip-worktree 파일이나폴더이름

예를 들어 아래와 같이 추적 중지를 할 수 있습니다.

$ git update-index --skip-worktree .settings/*
$ git update-index --skip-worktree .metadata/*
$ git update-index --skip-worktree .classpath
$ git update-index --skip-worktree .project

 

 

 

 

728x90

'DEV&OPS > Linux & Cloud' 카테고리의 다른 글

CentOS 7 네트워크 관리  (0) 2022.12.20
CentOS 에서 crontab 과 at사용법  (0) 2022.12.14
CentOS7 GitLab ce 설치  (0) 2022.10.07
CentOS 7 일반 계정에 sudo 권한 부여  (0) 2022.10.07
CentOS 7 oracle 19c 설치  (0) 2022.07.19