- After registering and logging in to your account, click 2 in the upper right corner.
- Click [Your repositories]
- Create a new library
and you will get ↓↓ - Go to the local project folder you want to upload, right-click [Open in Terminal]
- Just copy and paste the prompts in the library created in step three, as shown
below:
- Then push the local file to the library.
- If you encounter the following error during the push process:
On branch main Your branch is up to date with 'origin/main'. Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore .vscode/ index.html package-lock.json package.json public/ src/ vite.config.js nothing added to commit but untracked files present (use "git add" to track)
This prompt means that your current Git branch is
main
and there are some untracked files in your local repository. Untracked files refer to files that are not managed by Git and are usually newly added files.
If you want to add these files to Git version control, you need to perform the following steps:
GitHub creates a repository and establishes a link to the local one
Guess you like
Origin blog.csdn.net/Smile1552911411/article/details/132670400
Recommended
Ranking