S
S
Sergey Bakaev2017-09-07 12:06:15
git
Sergey Bakaev, 2017-09-07 12:06:15

How to properly set up .gitignore?

I have this .gitignore

/public_html/bitrix/*
!/public_html/bitrix/php_interface
!/public_html/bitrix/templates

!/public_html/bitrix/components/prof1
!/public_html/bitrix/components/prof2

!/public_html/bitrix/modules/bsn

The folders
/public_html/bitrix/templates
/public_html/bitrix/php_interface
got into the repository...
but these folders and their partial contents
/public_html/bitrix/components/
/public_html/bitrix/modules/
are not... what could be wrong ?
in advance thx

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2017-09-07
@aol-nnov

where is the question? how to setup? here's how to set it up !
git did everything as you asked.

S
Sergey Bakaev, 2017-09-07
@MonteC1

decided so

/public_html/bitrix/*
!/public_html/bitrix/php_interface
!/public_html/bitrix/templates

!/public_html/bitrix/components
/public_html/bitrix/components/bitrix

!/public_html/bitrix/modules/
/public_html/bitrix/modules/*
!/public_html/bitrix/modules/bsn

no, it didn't work out
Added the file /public_html/bitrix/modules/bsn/inc/tools.php
git add *
and it doesn't add it...
what kind of people! you ask them for advice, they write shit answers and are rude instead of advice
PEOPLE tell me plz. how in my case to set up .gitignore so that files from the necessary folders still get into git !!!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question