Git alias:
init-empty = !"f() { \
git init && \
git commit --allow-empty --allow-empty-message --message ''; \
}; f"
Example:
git init-empty
This initialization makes it easier to do later git rebase commands, because it enables a rebase to go all the way back to the first commit.