public/photos' \ --prune-empty --tag-name-filter cat -- --all echo public/photos >> .gitignore git add .gitignore && git commit -m "ignore rule for photos" git push origin branch -f // via: https://stackoverflow.com/questions/25458306/git-rm-fatal-pathspec-did-not-match-any-...