How to prevent showing folders in my Github repository connected to an RStudio project (Rmarkdown website)

Dear community,

I have an RStudio project connected to a GitHub repository through version control.

Hw can I prevent to show some folders that are in my RStudio project but I don't want to show in my public repository in Github.


Include the path in your .gitignore file


Thank you very much.

Like this:


Or do I need to put a dot before the name of the folder?

You have to use the relative path of the folder (relative to your project's working directory), if the path includes a dot like in those folders, then obviously you have to include it.

Thank you very much.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.