gitee upload code to warehouse nanny level tutorial (the most concise text command description)

gitee upload code instructions: a detailed steps to upload source code to Gitee:

  1. Create a Gitee account : First, you need to create an account on Gitee. Open https://gitee.com/, click "Register" in the upper right corner, and fill in the information according to the prompts.

  2. Create a new repository : Log in to Gitee, click the "+" icon in the upper right corner, and select "New Repository". From here, you can name your repository, add a description, choose whether to make the repository public, and click "Create repository".

  3. Create a Git repository locally : Open a command line, navigate to the folder where your source code is located, and enter the following command to initialize the Git repository:

git init
  1. Adding files to the Git repository : From the command line, add your files to the Git repository using the following command:
git add .

This will add all files in the folder. Can be used if you only want to add a specific file git add <file>.

  1. Commit your changes to the Git repository : Commit your changes to your local Git repository with the following command:
git commit -m "Initial commit"

You can replace "Initial commit" with any message that describes your changes.

  1. Connect to Gitee repository : On your Gitee repository page, copy the URL under "Clone/Download". Then, on the command line, enter the following command to add the Gitee repository as a remote repository:
git remote add origin <URL>

Replace <URL>with the URL you just copied.

  1. Push changes to the Gitee repository : Finally, push your changes to the Gitee repository with the following command:
git push -u origin master

If your Gitee repository is empty, this will push your source code to Gitee.

The above are the steps to upload the source code to Gitee. Note that this tutorial assumes you already have Git installed. If not, you will need to download and install Git first.

Guess you like

Origin blog.csdn.net/hbqjzx/article/details/131497982