Git clone without .git directory

后端 未结 4 1479
离开以前
离开以前 2020-12-02 04:39

Is there a flag to pass to git when doing a clone, say don\'t clone the .git directory? If not, how about a flag to delete the .git di

4条回答
  •  广开言路
    2020-12-02 05:34

    You can always do

    git clone git://repo.org/fossproject.git && rm -rf fossproject/.git
    

提交回复
热议问题