Documentation location/URL

https://www.drupal.org/docs/user_guide/en/extend-git.html#s-initializing...

Problem/Motivation

Step 7 contains the following text.

Enter the following commands. You can substitute your own commit message for "Initial file add" if you wish, and you will need to substitute your own Git clone URL for the URL in the second command:

git commit -m "Initial file add"
git remote add origin https://gitlab.com/example-name/example-repo.git
git push -u origin master

Proposed resolution

In the last command, instead of master, use main for the branch name.

git push -u origin main

Issue fork user_guide-3613124

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tsharp created an issue. See original summary.

avpaderno’s picture

Title: Suggestion for: (3058586) 11.11. Managing File and Configuration Revisions with Git » In the example code, use main instead of master for the branch name
Project: Documentation » User Guide
Version: » 11.x-dev
Component: Correction/Clarification » User Guide content
Issue summary: View changes

I am moving the issue to the right queue.

avpaderno’s picture

Status: Active » Needs review