명령어 |
설명 |
예시 |
git update-index --skip-worktree [파일명] |
지정한 파일에 대해 skip-worktree 플래그를 설정합니다. 로컬 변경 사항을 Git이 무시하도록 합니다. |
git update-index --skip-worktree config.txt |
git update-index --no-skip-worktree [파일명] |
설정된 skip-worktree 플래그를 해제하여, 해당 파일의 변경 사항을 다시 추적하도록 합니다. |
git update-index --no-skip-worktree config.txt |
git ls-files -v |
현재 추적 중인 파일들의 상태를 보여줍니다. 대문자는 일반 상태, 소문자는 skip-worktree가 설정된 파일입니다. |
git ls-files -v |