I was trying to ignore the changes on composer.phar and composer.phar files from the staging area (local host). So I followed this post answer and did:
git rm --cached composer.lock 
git rm --cached composer.phar
and added:
/composer.lock 
/composer.phar
to .gitignore file. And all seemed to go as expected, as those files were still there, but they weren't followed.
But now, when I try to pull the changes from the server, these files are removed. I don't what to remove those files, just don't follow them. How could I come back or resolve this issue?
 
     
    