Git Clone: Just the files, please?

后端 未结 8 661
北海茫月
北海茫月 2021-01-30 00:25

I want to clone a GIT repo and NOT end up with a .git directory. In other words I just want the files. Is there a way to do this?

git clone --no-chec

8条回答
  •  执笔经年
    2021-01-30 00:57

    It sounds like you just want a copy of the source code. If so why not just copy the directory and exclude the .git directory from the copy?

提交回复
热议问题