Skip to content

feat: add git init to post-generation hook#17

Merged
h0pers merged 1 commit into
masterfrom
feat/post-git-init
Jul 2, 2026
Merged

feat: add git init to post-generation hook#17
h0pers merged 1 commit into
masterfrom
feat/post-git-init

Conversation

@h0pers

@h0pers h0pers commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add init_git() to the cookiecutter post-generation hook
  • Initializes a git repo, stages all files, and creates an initial commit after project generation
  • Gracefully warns if git is unavailable instead of crashing

Test plan

  • Generate a new project and verify a git repo is initialized with an initial commit
  • Generate a project without git installed and verify the warning message appears

@h0pers
h0pers merged commit 5821803 into master Jul 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant