Link to home
Start Free TrialLog in
Avatar of Sitewizard
SitewizardFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sitewizard

ASKER

git clone git://repo.org/projectname.git && rm -rf projectname/.git
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.
The solution that Sitewizard is proposing that they found themselves is exactly what I had posted 5 hours earlier
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.
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.
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!