Start date : 5/3/2022
Crash course :
- Git and GitHub for Beginners - Crash Course --freeCodeCamp.org
- Git Branches Tutorial
- Git for Professionals Tutorial - Tools & Concepts for Mastering Version Control with Git
- Git push command
> ! [rejected] main -> main (fetch first)
> error: failed to push some refs to '[email protected]:1274248407/Markdown_learned.git'
-
That only happens because your remote repository was initialized not empty, but with some files (README.md for instance)
That is why force pushing is a good option (in that case)
git push -f -u origin mainIf you had created the repository empty, a regular push would have been enough.