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

avpaderno changed the visibility of the branch 3613124-change-master-with-main to hidden.

avpaderno changed the visibility of the branch 3613124-use-main-as-branch-name to hidden.

avpaderno’s picture

Issue summary: View changes

eojthebrave made their first commit to this issue’s fork.

eojthebrave’s picture

Status: Needs review » Fixed

Thanks @avpaderno

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.