mcintyre321 / EmbeddedResourceVirtualPathProvider

A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies
http://www.adverseconditionals.com/2011/07/portable-aspnet-code-using.html
MIT License
63 stars 42 forks source link

Repository contains binaries in sample projects #25

Open mycroes opened 8 years ago

mycroes commented 8 years ago

Not sure how you feel about this, but at my work I always avoid having binaries in repositories.

mcintyre321 commented 8 years ago

An oversight when the .gitignore was set up. It would be great to clean up, but I think it would also involve rewriting the project history to remove the binaries (and reduce the repo bloat). Not sure how to do that.

mycroes commented 8 years ago

So this will be fun:

echo packages/ > newignore
cat .gitignore >> newignore
mv newignore .gitignore
git add .gitignore
git commit -m 'fixup! Initial drop of code'
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch packages/ nuget/lib/net40/EmbeddedResourceVirtualPathProvider.*' master
git rebase -i --root --preserve-merges
git push -f origin master:master

The rebase will give you some merge conflicts on .gitignore, they're all easy to solve. I used the newignore to put packages/ at the top of the .gitignore file, saves some additional merge conflicts. Save the last step for when you're certain this is what you want ;-)

mycroes commented 8 years ago

Oh by the way, this took me 20 mins to get right as well.

mcintyre321 commented 8 years ago

I'll give it go at the weekend. With a stiff drink in my hand :)