2012-03-02 2 views
0

자식에서 부모 direcitory을 찾을 난 내 주요 부모 즉, git_clone 디렉토리는 뭐죠 알 방법 GG에서 지금 자식 내가 자식 복제 commnad를 사용하여 다음 디렉토리를 복제 한

 git clone git_main git_clone 
    cd git_clone 
    ls 
    sys info ff bin .git 
    ff has the following directory structure 
    ff/tt/gg/a.txt 
    cd ff/tt/gg 
    gg> 

을 따라하는 명령은 이 모든 자식 commnad 또는 내가 .git 디렉토리입니다 이것은 당신을 알려줍니다 .git

답변

1
git rev-parse --git-dir 

부모를 찾을 수있는 방법에 대해 설명합니다.

git rev-parse --show-toplevel 

작업 트리의 루트가 어디인지 알려줍니다.

관련 문제