While that thought lingered at the back of my mind, I saw a funny tweet showcasing ridiculous commit messages. I thought, “Hey! I have some stupid commit messages, let me go screenshot them and share them as a reply to that tweet.” Somehow the two thoughts connected. It instantly clicked: What if I could wear my stupid git commit messages? What if I put it on a T-shirt? A giTshirt…
That would be the perfect way to showcase what I’ve made, as well as a funny conversation starter at conventions. So I developed an algorithm that places commit messages from repositories you’ve chosen and creates a ready-to-order T-shirt. Then I worked with a designer to create a logo and a special card that you receive with your giTshirt. I didn't stop reworking giTshirt until I created something I'D like to wear.
Spoiler - It took me weeks but I managed to do it.
The giTshirt you see on the home page is the one I ordered and the very one I'm wearing while typing. (It's pretty cool!)
How it all works Here's a step-by-step of everything that happens from clicking “Generate giTshirt” to getting it to you: 1. Security: 1.1 Stop you if you are not authenticated 1.2 Stop you if you are generating 3 shirts per minute (pls don't :)) 1.3 (Sadly) Stop you if there are more than 300 commits selected. You just physically can't fit more than 300 messages on a T-shirt, sorry 2. Generating images: 2.1 I needed to create a 2D collision system to place the commit messages 2.2 The commit messages are placed at almost random 2.3 There are 4 total images generated. Back, front, left sleeve, and right sleeve 3. Creating the product 3.1 I upload the 4 images to Cloudinary 3.2 These images are then downloaded to my T-shirt provider 3.3 The code places them on the T-shirts 3.4 Then a product is created and I get back the mockups back 3.5 These mockups are then displayed to the user before a purchase is made
Here's how you can get a giTshirt in less than a minute: This is not a marketing gimmick; I timed it, and it took me 43 seconds. 1. Sign up with GitHub 2. Select a repository - both public and private ones work 3. (optional) All commit messages are pre-selected, but you could nit-pick the ones you want 4. Click on the "Generate giTshirt" button 5. Order and wait!
If you like the idea and want to order one you can visit - https://giTshirt.com If you like the idea but don't want to order one you can always visit the ProductHunt launch and support giTshirt there - https://www.producthunt.com/products/gitshirt Thanks for reading!