상당히 큰 GIT 저장소가 있으며 마스터로 다시 병합되지 않은 지점을 제거하고 싶습니다.힘내 : 마스터로 다시 합병되지 않은 모든 지점을 찾는 방법
역도 괜찮습니다. 어느 시점에서 마스터에 병합 된 모든 브랜치를 나열하는 방법입니다.
일부 브랜치는 계속 유지할 가치가 있거나 더 최근에 개발 중이므로 곧 바로 브랜치를 삭제하는 것으로 시작하는 목록을 얻고 싶습니다.
질문 : 변경 사항이 전혀없는 분기를 모두 으로 병합하는 방법이 있습니까?
상당히 큰 GIT 저장소가 있으며 마스터로 다시 병합되지 않은 지점을 제거하고 싶습니다.힘내 : 마스터로 다시 합병되지 않은 모든 지점을 찾는 방법
역도 괜찮습니다. 어느 시점에서 마스터에 병합 된 모든 브랜치를 나열하는 방법입니다.
일부 브랜치는 계속 유지할 가치가 있거나 더 최근에 개발 중이므로 곧 바로 브랜치를 삭제하는 것으로 시작하는 목록을 얻고 싶습니다.
질문 : 변경 사항이 전혀없는 분기를 모두 으로 병합하는 방법이 있습니까?
git branch --no-merged master
또는 다른 방법에 대한 , docs
git help branch
git branch --merged master
는 말한다 :
With --contains, shows only the branches that contain the named commit
(in other words, the branches whose tip commits are descendants of the
named commit). With --merged, only branches merged into the named
commit (i.e. the branches whose tip commits are reachable from the
named commit) will be listed. With --no-merged only branches not merged
into the named commit will be listed. If the <commit> argument is
missing it defaults to HEAD (i.e. the tip of the current branch).
를 따라서 모든 지점을 찾기 위해 이미 git branch --merged master
을 사용할 수있는 마스터 합병했다.