What is the agreement for the contents of the initial / first git commit?

I know that for every logical change you need to perform a Git commit, but what is the agreement (if it exists) for the first commit?

[note: I do not invite an opinion / discussion on this issue - if there is no general agreement, then good).

For example, I started a website from scratch using index.html - my first “logical change” could be anything from adding <head> elements, adding an HTML structure, or adding basic content and CSS. Or should the first commit be the first "working" version?

Edit: I do not mean the commit message; I mean the contents of the files.

+6
source share
3 answers

There does not seem to be an established agreement (for content, not for message).

I found this best practice article helpful: https://sethrobertson.imtqy.com/GitBestPractices/

+3
source

Usually the first commit is called the Initial Commit.

As a best practice, it includes a README describing the project.
README usually an md file.

Just for fun, read this: Funny git commit initial posts :

+5
source

I am not sure if there is any specific agreement for the first commit. I always try to have at least some resemblance to the project’s skeleton and probably a README that describes the intended goals.

+1
source

All Articles