How to Clone existing git repository without any history or git information

I am trying to get a clean copy of a current git repository.  I do not want any history or any git information, just the current code.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
There is nothing special about the working directory of a cloned git repo, so the easiest way to get what you want is to either copy your current working directory or git clone a new copy and then just remove the .git directory (and other git stuff if you like, such as .gitignore, etc)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SitewizardAuthor Commented:
git clone git:// && rm -rf projectname/.git
SitewizardAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for Sitewizard's comment #a40670300

for the following reason:

Since no one else answered I found the answer myself.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

mccarlIT Business Systems Analyst / Software DeveloperCommented:
The solution that Sitewizard is proposing that they found themselves is exactly what I had posted 5 hours earlier
SitewizardAuthor Commented:
I was asking for the git command to clone. He did not provide that, just random information about what I could delete.  I simply found the correct way, the git way to do this myself and reposted it.
SitewizardAuthor Commented:
honestly I did not ask for the theory behind it, was asking how to do it.  I don't want to be bothered with this mickey mouse bs.  I have better things to do then go back and forth over this.
mccarlIT Business Systems Analyst / Software DeveloperCommented:
Also, you would have needed to provide "some" indication of the system/OS you are working on to have any hope of a more specific answer. Anyway, rest assured that you wont have to waste your time reading any of my posts in the future!

Thanks for the assistance sorting this one out!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.