.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
'programing' 카테고리의 다른 글
ASP.NET 사용자 지정 오류 페이지 - 서버.GetLastError()가 null입니다. (0) | 2023.07.13 |
---|---|
Cloud Firestore에서 컬렉션 이름 업데이트 (0) | 2023.07.13 |
데이터베이스 메일 보내기 (0) | 2023.07.13 |
개체 배열에서 Mongoose / MongoDB $addToSet 기능 사용 (0) | 2023.07.13 |
행이 없는 경우 Oracle 삽입 (0) | 2023.07.13 |