fn init_git_repo(git: Git<'_>, commit: bool) -> Result<()>
Expand description
Initialises root
as a git repository, if it isn’t one already.
Creates .gitignore
and .github/workflows/test.yml
, if they don’t exist already.
Commits everything in root
if commit
is true.