I have a git repo already set up, but I want to create another remote repository/branch to only push the image files to (on Amazon S3 cdn). Subfolders containing images also need to be pushed.
Any ideas on how I can accomplish this?
I could have a .gitignore file that looks something like: * !/ !.jpg !*.png etc
But I'd have to swap it with the regular .gitignore file when pushing between origin/master and the new image remote. Maybe I could have a branch with its own .gitignore file, switch to that branch and push every time I want to update the image remote repository?
This question explains how to set up the repo, but not how to accomplish the image-only push to remote: Publish to S3 using Git?
Please let me know if you've any suggestions!