This might seem like a noob question but i couldn't find any solution to it. I have an apigility project cloned from the original repository. I have deleted the .git directory and kept the .gitignore file :
nbproject
._*
.~lock.*
.buildpath
.DS_Store
.idea
.project
.settings
composer.lock
vendor/
public/vendor/
config/development.config.php
config/autoload/local.php
config/autoload/*.local.php
!public/vendor/README.md
data/cache/*
!data/cache/.gitkeep
I have then made a "git init" in the root folder and my git repository was created. I have made a "git add .gitignore" and made an initial commit with it. After I tried to make a "git add ." but all my files are getting added to the staging area. I can't understand why because for example the .puppet directory is added to the .gitignore and it still gets added. I gave a shot to this solution Ignore files that have already been committed to a Git repository it doesn't solve my issue.
.puppet
directory listed in that.gitignore
file...ls
in the top-level directory and (b) the output ofgit status
after you have performed thegit add
operation?