programing

.gitignore에 없는 추적되지 않은 파일을 어떻게 표시합니까?

javajsp 2023. 7. 13. 20:40

.gitignore에 없는 추적되지 않은 파일을 어떻게 표시합니까?

사용 중git status -u추적되지 않은 파일을 표시합니다.그리고 단말기에는 유닛 테스트, 개인 문서 등 추적해야 하는 추적되지 않은 파일이 많이 보입니다.그것들을 넣었습니다..gitignore하지만 그것은git status여전히 보여줍니다.

에 없는 추적되지 않은 파일만 표시하는 방법.gitignore.

다음과 같이 추적 및 추적 해제되는 내용을 명시적으로 나열하여 Git가 당신을 보고 존중하는지 확인할 수 있습니다..gitignore게시하는 경우.gitignore내용물,git status출력 및dir또는ls저희가 더 잘 도와드릴 수 있습니다.

무시된 파일 나열

$ git ls-files . --ignored --exclude-standard --others

추적되지 않은 파일 나열

$ git ls-files . --exclude-standard --others

사용:

git config status.showuntrackedfiles no 
git update-index --no-assume-unchanged <file>

언급URL : https://stackoverflow.com/questions/3538144/how-do-you-git-show-untracked-files-that-do-not-exist-in-gitignore