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