I'm trying to have my .gitignore file allow certain subdirectories in my .config to be uploaded. This is how I've seen to do this for normal folders but it does not appear to working on my hidden directories.
*
!.config/
.config/**
!.config/bspwm/
!.config/htop/
!.config/mpd/
!.config/mpv/
!.config/neofetch/
!.config/polybar/
!.config/ranger/
!.config/sxhkd/
!.config/compton.conf
!.ncmpcpp
!.bash_profile
!.bashrc
!.vimrc
!.xinitrc
!.Xresources