clone repository without commits
I want clone specific repository of GitHub, but, without commits, branchs, in the other words: clone master branch and nothing more.
I know I can clone the repository and then just copy all the files except the .git folder, but wanted to know if this is possible.
One Solution collect form web for “clone repository without commits”
You probably want something like
git clone -b master --single-branch --depth 1 elsewhere.git here
git archive --remote somewhere.git master | tar -xvf - -C /where/i/want/to/put/it