This is archived documentation for Magento v2.2 and is no longer supported. Go to the latest documentation.

.gitignore reference

We include a base .gitignore file with the Magento Open Source project repository. See the latest Magento .gitignore file. If you need to add a file that is in the .gitignore list, you can use the -f (force) option when staging a commit:

1
git add <path/filename> -f