- create github repo
- clone github repo
- create react app
npx create-react-app .
4. add all files, commit then push
5. To push, may need to generate a token. github has disabled password authentication.
6. Store credential. By default, the git credentials in the “store” mode will be stored in the
“.git-credentials” file in the user’s home directory (~/.git-credentials)
git config --global credential.helper store
If creating react app in local first then create git hub repo, it is crucial to not add README, .gitignore or license. Otherwise, it will not let you push until you’ve integrated these changes with the local repo
Add to remove repo like this:
git remote add origin https://github.com/username/app name.git