programing

폴더의 Git 내역 보기

telebox 2023. 7. 16. 13:15
반응형

폴더의 Git 내역 보기

폴더 내의 모든 파일에 대한 git 로그 기록을 보려면 어떻게 해야 합니까?

특정 파일의 로그를 표시하는 방법에 대한 게시물을 여러 개 찾았지만 특정 폴더는 찾지 못했습니다.

다음 중 하나를 사용할 수 있습니다.foldername또는foldername/*어느 쪽이든 통해야 합니다.

git log -- path/to/folder
git log -- path/to/folder/*

이 방법에서는 이름이 변경된 파일의 기록을 따르지 않습니다.

참고로--(gitlog 설명서에서)도 선택할 수 있습니다.

[--] <path>...

           Show only commits that are enough to explain how the files that match the specified paths came to be. See History Simplification below for
           details and other simplification modes.

           Paths may need to be prefixed with -- to separate them from options or the revision range, when confusion arises.

gitk와 같은 그래픽 도구를 사용하려는 경우에도 동일하게 작동합니다.

gitk -- path/to/folder

언급URL : https://stackoverflow.com/questions/11950037/view-git-history-for-folder

반응형