Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clone seed/kick-start project without the whole history?

Note that using --depth=1 parameter prevents you from pushing the project to a new repository.

like image 874
itamar Avatar asked Apr 20 '15 12:04

itamar


People also ask

Does git clone copy history?

Cloning an entire repo is standard operating procedure using Git. Each clone usually includes everything in a repository. That means when you clone, you get not only the files, but every revision of every file ever committed, plus the history of each commit.


1 Answers

You can do a

git clone <git_url> 

delete the .git repository from your folder. Which will delete all your history.

The you can do a

git init  

which will create an entirely new git project for you.

This may not be the best way. But this will work . Hope it helps.

like image 143
Ajay Avatar answered Sep 22 '22 01:09

Ajay