-1

For my XPages application I have set a .gitignore file to exclude the directory where my javascript modules are installed via this definition:

ODP/WebContent 

In that same WebContent folder I have a sub-directory WEB-INF with sub-directories that I want to include for SCM.

How can I do this?

Malin
  • 697
  • 5
  • 21
  • 1
    Possible duplicate of [.gitignore exclude folder but include specific subfolder](https://stackoverflow.com/questions/5533050/gitignore-exclude-folder-but-include-specific-subfolder) – phd Jun 27 '19 at 16:12
  • https://stackoverflow.com/search?q=%5Bgitignore%5D+unignore+subdirectory – phd Jun 27 '19 at 16:12

1 Answers1

2

I tend to use this:

# Ignore ODP/WebContent folder
ODP/WebContent/*
# But include the java files
!ODP/WebContent/WEB-INF/
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26