git ignore folder except one file code example Example: git ignore folder except one file pippo/* !pippo/pluto pippo/pluto/* !pippo/pluto/paperino.xml