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.
SitewizardAsked:
Who is Participating?
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)
0

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://repo.org/projectname.git && rm -rf projectname/.git
0
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.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy 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
0
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.
0
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.
0
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!


@phoffric,
Thanks for the assistance sorting this one out!
0
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
Git

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.