I want to have the same structure in all new Git repos, for example:
repo
|- .git (created by git-init)
|- src
|- doc
|- README
Of course, in *nix I can have something like alias ginit="git init && mkdir ... && touch ..."
Can I have some kind of hook for git-init to create the dirs and a file only by means of Git itself?
As far as I understand, --template=
changes the structure of .git
only.
Have you considered using git aliases? e.g. (untested):