When I use create-react-app and cd into the directory it already shows me (master) when I haven't even initialized git. When I try to do git init and set remote origin it still stays the same and my repository isn't connected. What should I do?
CodePudding user response:
Create react app initialises git automatically, and adds a .gitignore
CodePudding user response:
Try to solve it by this example
echo "# qqq" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:{username}/{repository}.git
git push -u origin main