Using .gitignore and and removing the cache

Using a .gitignore file you can prevent files from being stored in a repo. If you don’t use git rm –cached <file names here(no arrows)>  your files will still be sent to the repo.

If you need help with git start with this amazing guide.