- Create a repo called my-app in Github
- npx create-react-app my-app --template typescript
- git remote add origin https://github.com/<YOUR-GIT-NAME>/my-app.git
- Control panel --> Credential manager --> Windows credentials --> remove all Git credentials (otherwise, you will get 403)
- git config user.name "<YOUR-NAME>"
- git config user.email <EMAIL-ADDRESS>
- git config -e
- git checkout -b main
- git branch -D master
- git branch
- git fetch origin main
- git pull origin main --allow-unrelated-histories
- Fix all merge conflicts through VS Code
- git commit
- git push --set-upstream origin main
Comments
Post a Comment