Monday, November 29, 2021

 Create a new repo from github


git init

git remote add origin https://github.com/

git pull origin main


echo "# repo2" >> README.md

git add README.md

git commit -m "first commit"

git push -u origin main



Creating a default main brach:
git config --global init.defaultBranch main