A
A
aleksandrkotov2021-12-14 22:31:43
git
aleksandrkotov, 2021-12-14 22:31:43

How to do a git add of all project folders and files except for one folder with its internal folders and files?

I want to upload the finished project to github. But when I wrote the command git add ., I got errors:

warning: could not open directory 'database/source/performance_schema/': Permission denied
warning: could not open directory 'database/source/bc/': Permission denied
warning: could not open directory 'database/source/mysql/': Permission denied
error: open("database/source/aria_log.00000001"): Permission denied
error: unable to index file 'database/source/aria_log.00000001'
fatal: adding files failed


The fact is that the owner of the database folder, which is located at the root of the project folder, is root, and I cannot change it to another owner, there is a reason for that, so I can simply upload the site without the database folder and its internals. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-12-14
@aleksandrkotov

How about gitignore?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question