Skip to content

Missing step for initializing a repository #1040

Description

@cboydstun

Describe the bug
Lesson 02 - GitHub Basics does not include initializing main branch with command git branch -M main. Gives error on push command because there is no branch to to push to.

To Reproduce
Steps to reproduce the behavior:

  1. Go to GitHub Basics
  2. Follow steps up to number 11 with git push -u origin main
  3. See error - error: failed to push some refs to 'https://github.com/organization/example.git'

Expected behavior
Expected to push put to new repository without errors.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions