Skip to content

Commit 2e4596c

Browse files
authored
[8.x] Installer updates (#6939)
* Remove note about Git protocol * Document branch flag
1 parent 0e8351b commit 2e4596c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

installation.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,13 @@ For convenience, the Laravel installer can also create a Git repository for your
192192
laravel new example-app --git
193193
```
194194

195-
This command will initialize a new Git repository for your project and automatically commit the base Laravel skeleton. The `git` flag assumes you have properly installed and configured Git.
195+
This command will initialize a new Git repository for your project and automatically commit the base Laravel skeleton. The `git` flag assumes you have properly installed and configured Git. You can also use the `--branch` flag to set the initial branch name:
196196

197-
Or, instead of using the `--git` flag, you may use the `--github` flag to create a Git repository and also create a corresponding private repository on GitHub:
197+
```bash
198+
laravel new example-app --git --branch="main"
199+
```
200+
201+
Instead of using the `--git` flag, you may also use the `--github` flag to create a Git repository and also create a corresponding private repository on GitHub:
198202

199203
```bash
200204
laravel new example-app --github
@@ -212,8 +216,6 @@ You may use the `--organization` flag to create the repository under a specific
212216
laravel new example-app --github="--public" --organization="laravel"
213217
```
214218

215-
> {note} You may experience issues with the `github` flag if your system's Git protocol is set to `https`. If you're prompted for your GitHub username and password during the installation, try setting your system's Git protocol to `ssh` by running `gh config set git_protocol ssh --host github.com`.
216-
217219
<a name="initial-configuration"></a>
218220
## Initial Configuration
219221

0 commit comments

Comments
 (0)