Create a GitHub repository
Create a GitHub repository
The first step is to create a GitHub repository for your project. If you already have a repository for
your project, you can skip this step. To create a new repository, follow these steps:
1. Go to GitHub.com and log in to your account.
2. Click on the “+” icon in the top right corner and select “New repository”.
3. Give your repository a name, and add a brief description if desired. I will name it react-project.
4. Choose whether to make the repository public or private.
5. After running npm create vite@latest, you will be asked to put a project name.
The “predeploy” and “deploy” scripts are used to automate the deployment process.
3. Save the changes.
This will stage all the files in your project for committing.
3. Commit the changes by running the command:
git commit -m "Initial commit"
This will create a new commit in the Git repository with the message “Initial commit”.
4. Rename the master branch to main by running the command:
git branch -M main
This will push the initial commit of your local Git repository to the GitHub repository.