Skip to content

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Oct 9, 2024

This pull request adds Git support to the statamic new command. It'll allow users to setup up a Git repository for their new site.

Additionally, if you have GitHub's gh CLI tool installed, it'll let you create repositories on GitHub.

Closes #69.

Usage

CleanShot.2024-10-09.at.15.25.33.mp4

If you'd prefer to provide flags to the command, you can do that too:

# Initializes a Git repo
statamic new client-site.com --git

# Initializes a Git repo, pushes it to a private GitHub repo
statamic new client-site.com --github

# Initializes a Git repo, pushes it to a public GitHub repo called "myblog.me"
statamic new client-site.com --github=public --repo=myblog.me
@duncanmcclean duncanmcclean marked this pull request as draft October 9, 2024 13:26
@duncanmcclean duncanmcclean marked this pull request as ready for review October 9, 2024 14:27
@jasonvarga jasonvarga merged commit 466230c into master Oct 10, 2024
@jasonvarga jasonvarga deleted the git-init-option branch October 10, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants