Skip to content

Git support#185

Merged
taylorotwell merged 5 commits intomasterfrom
git-support
Mar 4, 2021
Merged

Git support#185
taylorotwell merged 5 commits intomasterfrom
git-support

Conversation

@driesvints
Copy link
Member

@driesvints driesvints commented Mar 1, 2021

This PR adds git support to the Laravel installer. It'll allow users to immediately set up a Git repository with a fresh Laravel app committed into the Git history. Additionally, when using the --github flag, the installer will use GitHub's gh CLI tool under the hood to push the project to a private GitHub repo under the user's GitHub account. This'll make getting up an running with a new Laravel project that more easier.

Set up a new Laravel project and initialize a repo with the base skeleton committed:

laravel new my-app.com --git

The same as above but also automatically create a private GitHub repository:

laravel new my-app.com --github

The repo will then be available at github.com/<your-account/my-app.com.

The same as above but with Jetstream committed separately:

laravel new my-app.com --jet --github

Pass flags for gh repo create:

laravel new my-app.com --github="--public --team laravel"

The git flag assumes you've properly installed and configured Git. The github flag assumes you've properly installed the gh CLI tool and are authenticated with GitHub.

@driesvints driesvints requested a review from taylorotwell March 1, 2021 18:41
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.

2 participants