Search code examples
javascriptreactjs

Using create-react-app and connecting it to my git repository?


Apologize up front as I am super new to React. I run the command npx create-react-app {test-app} and I understand that it creates a git repository for me. My confusion is I don't understand how I connect my github page to that repository. (if that makes sense) connect my newly created GitHub repo page connected to React project Hope this makes sense.


Solution

  • You can create a Github repository. Then copy the link to clone the repository. Next you can head towards the react project folder and open the terminal.

    Run git remote add origin <url_you_copied>. After that you can do, add commit push operations.