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