I have a .gitignore file which doesn't seem to work properly. It doesn't upload any files in the subdirectory as intended but I added an except all .cs files, but the subdirectory remains empty. Here is my code:
/*
!.gitignore
!my_repo/build/game/Assets/Scripts/*.cs
I want nothing apart from the .cs files and the .gitignore file. but the .cs files still doesn't seem to be picked up by git. Thanks.
PS.
I tried doing this also, but it doesn't work either:
!*.cs