Answer the question
In order to leave comments, you need to log in
How to prevent pushing some folders and files in git?
Hello everyone, the following question arose - for example, I have a media folder on my computer and I do not want to add it to a remote repository, can this be configured somewhere? Tried .gitignore but the folder is still gone.
Answer the question
In order to leave comments, you need to log in
if it is necessary that the folder does not get into the turnip at all, then in the root .gitignore
if it is necessary that the folder exists, but the contents do not go to the turnip, it is useful that the folder structure already exists and the code does not create folders with the necessary rights, you need to create a file in this folder. gitignore:
*
!.gitignore
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question