Git is one heck of a tool for maintaining source code base. I’ve been using it for a while and loving it more than SVN and VSS.
Recently I had a problem where I had to remove some files locally. I removed unnecessary classes and pushed the code to Git server. Everything works fine but the deleted files are still exists in the server. So when I do the pull command form another machine, I’ll still get the deleted files.
After digging around for a while I come to know that running following command will remove unnecessary deleted files from server as well.
Run add as below
$ git add . -A
Now commit and push it
$ git commit -m "removed some files" $ git push origin master
That’s it, now check your files in the server.