How do I excluded a directory from being tracked by Git? My Git ignore entry does not work.
I've got a confusing issue with my Drupal website in which I am using two Git repositories.
The basic structure of the site is : var/www/Intranet/sites/intranet
In the Intranet/sites/intranet is my first Git repository which is where I maintain custom and contributed code using Git to version control.
In order to version control the Drupal core code base, I initiated a new GIT repository at var/www/Intranet
. This new repo is meant to track everything except the contents of the sites sub directory. To this end I added sites
to the .gitignore file.
But, what I've noticed recently is when I go to var/www/Intranet/sites
, it is still being tracked by the new Git repo (var/www/Intranet
) which should NOT be the case.
I'm not sure why that is happening.