I have a directory structure like this for dr1:
.
├── dr2
│ ├── hi.txt
│ └── inputs
│ ├── anotherbigfile.big
│ └── bigfile.big
├── dr3
│ ├── bye.txt
│ ├── inputs
│ │ ├── anotherbigfile.bigfile
│ │ └── bigfile.bigfile
│ └── small.txt
└── dr4
└── bye.txt
My dr1 is a git repo with .gitignore with the following contents:
inputs/
I want to stage everything in dr1 , I mean all sub-directories and all files , I just want to not stage, commit and push the inputs directory in every sub-directory dr2 dr3 dr4. These contain big files and I don't them in github.
I did this git add . from dr1 but I am having a problem since only the sub-directories are being staged but not the contents, so in my repo I only have empty directories, only the dr4 sub directory works since there is no folder with inputs there.
What's wrong here ? I thought git would ignore only the sub-directory input but the rest of the directory would be staged