For example, I want to use some framework that’s located on Github. Is there a way to clone a repository without the .git structure? That way I can add new a remote url and push to my own repository appropriately?
Edit
The purpose of this is so that I can take a framework off from Github and put it into my own brand new repository without importing any git data from the framework’s repository (like git logs). I know you can clone and remove the appropriate data or you could just download a tarball using Github’s tool, but I’m just wondering if there’s any easier way to do it such as like a git clone, preferably a single command.
If you want just the repo latest content, without any git information, then the tarball is the best solution, and can be done with a single command line:
or
Even on Windows, you can do it, with the unix-like commands from GoW (Gnu On Windows).
That would allow you then to add that new directory as one of your own.
Note: a submodule would be preferable, but isn’t what you specifically asked.
The OP Steven Lu adds in the comments:
For any other repo, you can use the command
git archive --remote, as illustrated in “git archivecommand with bitbucket“:For instance: