Function create_repo_and_commit

Source
pub fn create_repo_and_commit(dir: &Path) -> Result<(), Error>
Expand description

Creates a new git repository in the given directory and makes an initial commit with all files in the repository. If there is no user configured, it sets a default user name and email. This function is used for setting up a new git repository for testing purposes.