Whenever I start a new project, I struggle with what to put in the very first commit message. After doing a “git init” there is technically nothing there and no work done yet, so how to describe this initial step?
“Initial commit” always seemed a little futile, so I started gathering some better examples on what to put in the message for the glorious start of a new project and I am sharing them here for all of you to marvel at:
This is where it all begins...
Commit committed
Version control is awful
COMMIT ALL THE FILES!
The same thing we do every night, Pinky - try to take over the world!
Lock S-foils in attack position
This commit is a lie
I'll explain when you're older!
Here be Dragons
Reinventing the wheel. Again.
This is not the commit message you are looking for
Batman! (this commit has no parents)
Or, you know, just use whatthecommit.com.
I’m always happy for comments with further ideas and will be adding to this list constantly.
“In the beginning, the code was without form and was void()…”
I liked the “Reinventing the wheel. Again.” comment. But I’m sure if it were me, it would have many more ellipsis as a sign of annoyance.
Thanks!
And so it begins…
— Kosh
Let’s get it started (in here).
Enter your commit message here (implying it came from a tutorial)
Also, Richard Branson motto suits here pretty well: Screw it, let’s do it.
This project is going to be legen- wait for it….
“Those who can make you believe absurdities can make you commit atrocities.”
– Voltaire
I have brilliant idea for you: don’t commit empty project with no work done yet. Setup project eg. with master/detail view and commit message possibilities are endless! Fair enough? 😛
Although there are legitimate reasons to start with an empty repo, I usually don’t. Most of the time it’s the bare framework and some setup code. Nevertheless I found out that usually there is not enough work done to describe it in a meaningful commit message. That’s why I came up with this list.
“This is the commit message this project needs, but not the one it deserves”
“If I commit an error I do it without bad intention.”
– Tawkertawker
If anyone is interested, I wrote a tiny shell script for your initial commit that will run `git commit -m ““.
https://github.com/Jab2870/dotfiles/blob/master/bin/git-initial-commit
Haha, it has always bugged me that “Initial commit” doesn’t have a period and is not an imperative statement.
“created the initial commit message” next the readme file…
“I have a bad feeling about this…”