2012-03-02 215 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 

这告诉你你的工作树的根在哪里。