简体   繁体   中英

Git and exclude subfolder

My repo has following structure:

- Data
-- Audio
-- Video

I want to include Audio but exclude Video. I wrote in info/exclude

Data/Video

but this didn't work. The following didn't work either:

Data/
!Data/Audio

Strangely, but this works:

Data/

Where am I wrong?

You could try

Data/Video/

The trailing / is important when ignoring a folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM