I manage config files in my home directory with git.
Here is the simplified content of the .gitignore
file in my home directory.
*
!.bashrc
!.bash_aliases
!.gitignore
I created a new directory in my home directory .bashrc_includes
with several files:
.bashrc_includes/
├── .bashrc_android
├── .bashrc_asdf
└── .bashrc_sdkman
I would like to add this directory with all the files inside it to the repository. I tried to add !.bashrc_includes/*
to my .gitignore
, but look like it is still ignored by git.
What is the right way to do it?