S
S
SciFi2012-11-12 12:25:00
CMS
SciFi, 2012-11-12 12:25:00

Do a git clone to a non-empty directory

How can I git clone to a non-empty directory?

I have some CMS. It has a core that does not make sense to keep in the version control system, but there is a changeable part. Now the CMS is installed and in use. I need to clone it from an existing repository.
How can this be checked?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Push_Ok, 2012-11-12
@Push_Ok

move the non-changeable part to a separate rap and make a submodule (if it is all in the same folder), and as a result, when you clone the rap, you will only have your code there, but there is always the opportunity to pull out the framework

V
viru0, 2012-11-12
@viru0

Make clone to empty, and then copy everything where necessary.
Well, then in .gitignore what does not need to be stored in git.

N
Nikolai Vasilchuk, 2012-11-12
@Anonym

Can make so that the changed part lay in a separate directory?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question