microsoft / Web-Dev-For-Beginners

24 Lessons, 12 Weeks, Get Started as a Web Developer
https://microsoft.github.io/Web-Dev-For-Beginners/
MIT License
82.94k stars 12.3k forks source link

Missing step for initializing a repository #1040

Open cboydstun opened 1 year ago

cboydstun commented 1 year ago

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):

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 year ago

This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.

github-actions[bot] commented 1 year ago

This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.