Skip to content

1274248407/Git-learn

Repository files navigation

Git-learn

Start date : 5/3/2022

Crash course :

  1. Git and GitHub for Beginners - Crash Course --freeCodeCamp.org
  2. Git Branches Tutorial
  3. Git for Professionals Tutorial - Tools & Concepts for Mastering Version Control with Git

Here are the comment I've taken the bug

  • 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 main 
    

    If you had created the repository empty, a regular push would have been enough.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published