Git ignore

This was originally wrapped into #14870 but that was closed without merging so here it is as a stand-alone.