From 645c384e1607c9bb6c3765aef06cc2df33728d94 Mon Sep 17 00:00:00 2001 From: m1mir <19989320-m1mir@users.noreply.gitlab.com> Date: Wed, 27 Mar 2024 08:52:15 +0100 Subject: [PATCH] Added git specific file copy command to docs. With the new instructions the copying to an existing project doesn't destoy the cloned symfony-docker repository. --- docs/existing-project.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/existing-project.md b/docs/existing-project.md index 6d3177f..6d03539 100644 --- a/docs/existing-project.md +++ b/docs/existing-project.md @@ -2,9 +2,13 @@ It's also possible to use Symfony Docker with existing projects! -First, [download this skeleton](https://github.com/dunglas/symfony-docker). If you clone the Git repository, be sure to remove the `.git` directory to prevent conflicts with the `.git` directory already in your existing project. +First, [download this skeleton](https://github.com/dunglas/symfony-docker). -Then, copy the Docker-related files from the skeleton to your existing project: +If you cloned the Git repository you can copy the files from the repository using git and tar: + + git archive --format=tar HEAD | tar -xC my-existing-project/ + +If you downloaded the skeleton with zip you can just copy the extracted files: cp -Rp symfony-docker/. my-existing-project/