2012-03-02 214 views
0

我已經使用Git克隆commnad及以下克隆一個目錄中找到父direcitory是從GG其次混帳從孩子

 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> 

現在我將如何知道什麼是我的主要母公司即git_clone目錄的命令有什麼混帳commnad或者我如何才能找到父git的

回答

1
git rev-parse --git-dir 

這告訴你其中.git目錄。

git rev-parse --show-toplevel 

這告訴你你的工作樹的根在哪裏。