git root 디렉토리를 하나의 명령어로 얻을 수 있는 방법이 있나요? Mercurial에는 루트 디렉토리(.hg 포함)를 인쇄하는 방법이 있습니다. hg root git에 .git 디렉토리가 포함된 디렉토리를 가져올 수 있는 동등한 것이 있습니까?네: git rev-parse --show-toplevel Mercurial 명령을 더 직접 복제하려면 다음 에일리어스를 만들 수 있습니다. git config --global alias.root 'rev-parse --show-toplevel' 지금은git root will will will will just just just just just just 와 같이 hg root. 주의: 서브모듈에서는 부모저장소가 아닌 서브모듈의 루트디렉토리가 표시됩니다.Gi..