Git

Removing files on git but keeping locally

git rm --cached /path/to/filename

git commit

git push

Add directory to a repository and push

git add /path/to/file

git commit

git push