@@ -30,27 +30,6 @@ git repository:
30
30
required vendor libraries. For more information about downloading Symfony using
31
31
Composer, see `Installing Symfony using Composer `_.
32
32
33
- #. Your project folder will now contain files for your new project, as well
34
- as files and folders for vendor libraries. You'll want to store your project
35
- files in Git, but not the dependencies, since they will be managed by Composer.
36
- You'll also want to keep your ``parameters.yml `` out of your repository as it will
37
- contain sensitive information, such as database credentials. Furthermore,
38
- files that are automatically created by Symfony (such as logs, caches, and dumped
39
- assets) should be excluded as well.
40
-
41
- To help you keep these files out of your repository, Symfony comes with a file
42
- called ``.gitignore ``. It contains a list of files and folders that Git will
43
- ignore.
44
-
45
- The contents of the ``.gitignore `` file that comes with the Standard Distribution
46
- can be found in the `GitHub repository `_.
47
-
48
- .. tip ::
49
-
50
- You may also want to create a .gitignore file that can be used system-wide,
51
- in which case, you can find more information here: `Github .gitignore `_
52
- This way you can exclude files/folders often used by your IDE for all of your projects.
53
-
54
33
#. Initialize your Git repository:
55
34
56
35
.. code-block :: bash
@@ -63,6 +42,23 @@ git repository:
63
42
64
43
$ git add .
65
44
45
+ .. tip ::
46
+
47
+ As you might have noticed, not all files that were downloaded by Composer in step 1,
48
+ have been staged for commit by Git. Certain files and folders, such as the project's
49
+ dependencies (which are managed by Composer), ``parameters.yml `` (which contains sensitive
50
+ information such as database credentials) and log-, cache- and asset files (which are
51
+ created automatically by your project), should not be committed in Git. To help you prevent
52
+ committing those files and folders by accident, the Standard Distribution comes with a
53
+ file called ``.gitignore ``, which contains a list of files and folders that Git should
54
+ ignore.
55
+
56
+ .. tip ::
57
+
58
+ You may also want to create a .gitignore file that can be used system-wide,
59
+ in which case, you can find more information here: `Github .gitignore `_
60
+ This way you can exclude files/folders often used by your IDE for all of your projects.
61
+
66
62
#. Create an initial commit with your started project:
67
63
68
64
.. code-block :: bash
@@ -116,7 +112,6 @@ manage this is `Gitolite`_.
116
112
.. _`Git` : http://git-scm.com/
117
113
.. _`Symfony2 Standard Edition` : http://symfony.com/download
118
114
.. _`Installing Symfony using Composer` : http://symfony.com/doc/current/book/installation.html#option-1-composer
119
- .. _`GitHub repository` : https://github.com/symfony/symfony-standard/blob/master/.gitignore
120
115
.. _`git submodules` : http://git-scm.com/book/en/Git-Tools-Submodules
121
116
.. _`GitHub` : https://github.com/
122
117
.. _`barebones repository` : http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository
0 commit comments