All Magento code is under source control in the same repository as the development and production systems
Then there are two different
.gitignore files (Docs), one for development, and for for build and production.
I am struggeling to keep up with that. How to keep everything in the same repo, but use different
On Build Docs, they explain it this way:
- Retrieve the Magento code from source control.
If you use Git, open
.gitignorein a text editor.
Start each of the following lines with a # character to comment them out: [...]
Save your changes to
.gitignoreand exit the text editor.
If you use Git, use the following commands to commit the change:
git add .gitignore && git commit -m "Modify .gitignore for build and production"
So, wouldn't this effectively change the
.gitignore file also for the development environment? There are using the same repo.