Should treat *.png as binary in .gitattributes
Created by: shanyu
On Ubuntu 16.04, Apache tez 0.9.1 build failed with bower install:
bower bootstrap#3.3.6 ECMDERR Failed to execute "git checkout 81df608a", exit code of #1 error: Your local changes to the following files would be overwritten by checkout: site/docs/4.1/assets/brand/bootstrap-social-logo.png site/docs/4.1/assets/brand/bootstrap-social.png site/docs/4.1/assets/img/bootstrap-stack.png site/docs/4.1/assets/img/bootstrap-themes.png site/docs/4.1/assets/img/favicons/android-chrome-192x192.png site/docs/4.1/assets/img/favicons/android-chrome-512x512.png site/docs/4.1/assets/img/favicons/apple-touch-icon.png site/docs/4.1/assets/img/favicons/favicon-16x16.png site/docs/4.1/assets/img/favicons/favicon-32x32.png site/docs/4.1/assets/img/favicons/mstile-144x144.png site/docs/4.1/assets/img/favicons/mstile-150x150.png site/docs/4.1/assets/img/favicons/mstile-310x150.png site/docs/4.1/assets/img/favicons/mstile-310x310.png site/docs/4.1/assets/img/favicons/mstile-70x70.png site/docs/4.1/examples/screenshots/album.png site/docs/4.1/examples/screenshots/blog.png site/docs/4.1/examples/screenshots/carousel.png site/docs/4.1/examples/screenshots/checkout.png site/docs/4.1/examples/screenshots/cover.png site/docs/4.1/examples/screenshots/dashboard.png site/docs/4.1/examples/screenshots/floating-labels.png site/docs/4.1/examples/screenshots/grid.png site/docs/4.1/examples/screenshots/jumbotron.png site/docs/4.1/examples/screenshots/navbar-bottom.png site/docs/4.1/examples/screenshots/navbar-fixed.png site/docs/4.1/examples/screenshots/navbar-static.png site/docs/4.1/examples/screenshots/navbars.png site/docs/4.1/examples/screenshots/offcanvas.png site/docs/4.1/examples/screenshots/pricing.png site/docs/4.1/examples/screenshots/product.png site/docs/4.1/examples/screenshots/sign-in.png site/docs/4.1/examples/screenshots/starter-template.png site/docs/4.1/examples/screenshots/sticky-footer-navbar.png site/docs/4.1/examples/screenshots/sticky-footer.png Please, commit your changes or stash them before you can switch branches. Aborting 2018-10-19T22:36:16.7019716Z [ERROR] 2018-10-19T22:36:16.7035820Z [ERROR] Additional error details: 2018-10-19T22:36:16.7053108Z [ERROR] error: Your local changes to the following files would be overwritten by checkout: 2018-10-19T22:36:16.7069781Z [ERROR] site/docs/4.1/assets/brand/bootstrap-social-logo.png 2018-10-19T22:36:16.7086962Z [ERROR] site/docs/4.1/assets/brand/bootstrap-social.png 2018-10-19T22:36:16.7104337Z [ERROR] site/docs/4.1/assets/img/bootstrap-stack.png 2018-10-19T22:36:16.7123835Z [ERROR] site/docs/4.1/assets/img/bootstrap-themes.png 2018-10-19T22:36:16.7141095Z [ERROR] site/docs/4.1/assets/img/favicons/android-chrome-192x192.png 2018-10-19T22:36:16.7158276Z [ERROR] site/docs/4.1/assets/img/favicons/android-chrome-512x512.png 2018-10-19T22:36:16.7175348Z [ERROR] site/docs/4.1/assets/img/favicons/apple-touch-icon.png 2018-10-19T22:36:16.7192361Z [ERROR] site/docs/4.1/assets/img/favicons/favicon-16x16.png 2018-10-19T22:36:16.7209887Z [ERROR] site/docs/4.1/assets/img/favicons/favicon-32x32.png 2018-10-19T22:36:16.7226901Z [ERROR] site/docs/4.1/assets/img/favicons/mstile-144x144.png 2018-10-19T22:36:16.7243979Z [ERROR] site/docs/4.1/assets/img/favicons/mstile-150x150.png 2018-10-19T22:36:16.7261018Z [ERROR] site/docs/4.1/assets/img/favicons/mstile-310x150.png 2018-10-19T22:36:16.7281206Z [ERROR] site/docs/4.1/assets/img/favicons/mstile-310x310.png 2018-10-19T22:36:16.7298762Z [ERROR] site/docs/4.1/assets/img/favicons/mstile-70x70.png 2018-10-19T22:36:16.7315247Z [ERROR] site/docs/4.1/examples/screenshots/album.png 2018-10-19T22:36:16.7331926Z [ERROR] site/docs/4.1/examples/screenshots/blog.png 2018-10-19T22:36:16.7348023Z [ERROR] site/docs/4.1/examples/screenshots/carousel.png 2018-10-19T22:36:16.7364203Z [ERROR] site/docs/4.1/examples/screenshots/checkout.png 2018-10-19T22:36:16.7380357Z [ERROR] site/docs/4.1/examples/screenshots/cover.png 2018-10-19T22:36:16.7396449Z [ERROR] site/docs/4.1/examples/screenshots/dashboard.png 2018-10-19T22:36:16.7413625Z [ERROR] site/docs/4.1/examples/screenshots/floating-labels.png 2018-10-19T22:36:16.7435371Z [ERROR] site/docs/4.1/examples/screenshots/grid.png 2018-10-19T22:36:16.7454102Z [ERROR] site/docs/4.1/examples/screenshots/jumbotron.png 2018-10-19T22:36:16.7471675Z [ERROR] site/docs/4.1/examples/screenshots/navbar-bottom.png 2018-10-19T22:36:16.7489618Z [ERROR] site/docs/4.1/examples/screenshots/navbar-fixed.png 2018-10-19T22:36:16.7506558Z [ERROR] site/docs/4.1/examples/screenshots/navbar-static.png 2018-10-19T22:36:16.7523151Z [ERROR] site/docs/4.1/examples/screenshots/navbars.png 2018-10-19T22:36:16.7539424Z [ERROR] site/docs/4.1/examples/screenshots/offcanvas.png 2018-10-19T22:36:16.7555521Z [ERROR] site/docs/4.1/examples/screenshots/pricing.png 2018-10-19T22:36:16.7571675Z [ERROR] site/docs/4.1/examples/screenshots/product.png 2018-10-19T22:36:16.7590231Z [ERROR] site/docs/4.1/examples/screenshots/sign-in.png 2018-10-19T22:36:16.7607304Z [ERROR] site/docs/4.1/examples/screenshots/starter-template.png 2018-10-19T22:36:16.7624450Z [ERROR] site/docs/4.1/examples/screenshots/sticky-footer-navbar.png 2018-10-19T22:36:16.7642654Z [ERROR] site/docs/4.1/examples/screenshots/sticky-footer.png 2018-10-19T22:36:16.7659607Z [ERROR] Please, commit your changes or stash them before you can switch branches. 2018-10-19T22:36:16.7675651Z [ERROR] Aborting
This is because this repo does not treat *.png as binary.
Solution: Add this line to .gitattributes: *.png binary