clear git cache when gitignore isn't working

Submitted by lwinmaungmaung on
clear git cache Image by Sasin Tipchai from Pixabay

Clear git cache is necessary when your git push is not appear over the server, especially .gitignore addition or removal. 

Install drupal on subdirectory with laravel and nginx- how to

Rolling back to my Projects, I have included my drupal site under laravel. However, the symlink is deleted or replace when I push to my project via git. Later, I added .gitignore to remove symlink from git but nothing changed. I browse all over the web but found on gitignore with the solution Here.

Clear git cache

You can clear your git cache by typing in your terminal 

git rm -rf --cached .

git add .