Git – создание репозитория на GitLab
Создаем базовый .gitignore
Одним из важных этапов в начале проекта, если вы планируете использовать гит - это создать правильный .gitignore
Базовый .gitignore для Drupal:
.gitignore
# This file contains default .gitignore rules. To use it, copy it to .gitignore,
# and it will cause files like your settings.php and user-uploaded files to be
# excluded from Git version control. This is a common strategy to avoid
# accidentally including private information in public repositories and patch
# files.
#
# Because .gitignore can be specific to your site, this file has a different
# name; updating Drupal core will not override your custom .gitignore file.
# Ignore core when managing all of a project's dependencies with Composer
# including Drupal core.
# core
# Ignore dependencies that are managed with Composer.
# Generally you should only ignore the root vendor directory. It's important
# that core/assets/vendor and any other vendor directories within contrib or
# custom module, theme, etc., are not ignored unless you purposely do so.
/vendor/
# Ignore configuration files that may contain sensitive information.
/web/sites/*/settings*.php
/web/sites/*/services*.yml
# Ignore paths that contain user-generated content.
/web/sites/*/files
/web/sites/*/private
# Ignore SimpleTest multi-site environment.
/web/sites/simpletest
/.editorconfig
/.gitattributes
#root
/web/.csslintrc
/web/.eslintignore
/web/.eslintrc.json
/web/.ht.router.php
/web/autoload.php
/web/example.gitignore
/web/index.php
/web/INSTALL.txt
/web/README.txt
/web/robots.txt
/web/update.php
/web/web.config
/web/core
/web/profiles/contrib
/web/libraries
#contrib
/web/modules/contrib
/web/themes/contrib
#node
node_modules
/web/.htaccess
/web/.htpasswd
.idea
/dump.sh
/bin
/*.sql
#Docker4Drupal
/.env
/compose.override.yml
Создание Git репозитория
Я создал репозиторий на GitLab:
https://gitlab.com/kondratiuk.info/dlog
Issues - задачи для проекта
Для нашего Dlog'a я буду добавлять задачи, которые мы будем решать в процессе разработки.
https://gitlab.com/kondratiuk.info/dlog/-/issues
в следующей статье мы уже запушим первые файлы проекта.

Добавить комментарий