I have two directories in my repo
- src
- tests
now, tests is actually a new directory(which is not empty). It does have a tests.csproj and related files into it.
Now, on my local everything looks good but when I push it to GitHub, couple of unexpected things start happening:
the tests folder shows up as
Tests/projectFolderon github. Which has multiple things which are wrong. I was expecting to see justtestsfolder. I have no idea why it shows full path to the project folder.- Suddenly the
testsfolder is capitalized without a reason, now sure why. - When I hover over the folder it shows
This path skips through empty directoriesmessage on github. Which could be a problem if it in fact was en empty folder but it really is not. - when I include a .gitkeep file in the tests folder as suggested on this link: Does git ignore empty folders? then it sholves the problem that it shows the entire path of
Tests/projectFolderinstead of tests but as you can notice the capitalization issue is still there. And also the I just do not want to put a .gitkeep file in any of my folder if I do not have to. Which I think is a fair expectation if my folder is not empty.
I have multiple problems with it. First of all, I may have to go through this exercise(of adding (.gitkeep) file only if it was an empty folder. If it is not an empty folder then I should just be able to add a new folder and add new files in it and it should just show up on GitHub as it is. Also, I have no idea where is this involuntary capitalization is coming from. Any ideas?