You can put any files in Git that you like. There's not a sketch configurator that you can pick and choose modules to include in a sketch. You could code in a bunch of conditional compilation blocks and build a .h file to select these blocks, but boy does that make the code an unreadable mess.