Home >Development Tools >git >How to submit assignments on Gitee?

How to submit assignments on Gitee?

PHPz
PHPzOriginal
2023-03-30 17:03:381613browse

If you are in a course or training and the teacher requires you to use Gitee to submit your assignment, you can follow the following steps to complete the submission:

Step 1: Create a repository or find the sample repository of the course

If the teacher has already created a sample warehouse for you, just enter the warehouse directly. If not, you need to create a warehouse yourself. You can follow the steps below:

  1. Log in to your account on the Gitee website.
  2. Click the " " sign in the upper right corner of the page and select "New Warehouse".
  3. On the new warehouse page, fill in the basic information of the warehouse, including warehouse name, description, etc. If you are submitting an assignment, consider using the course name or assignment name as the repository name.
  4. Select the visibility of the warehouse. If you only want the repository to be accessible to your teacher and yourself, select Private.
  5. Click "Create Warehouse". After creation, you can see the link address of the warehouse, similar to "https://gitee.com/<Username>/<Warehouse Name>".

Step 2: Submit the code or documents to the warehouse

Submit your job code or documents to the warehouse. Commits can be done using the Git command line tool, the Git GUI tool, or the online editor available on the Gitee website.

If this is the first submission, you need to add the warehouse link address to the remote address of the local Git warehouse. You can use the following command to complete:

$ git remote add origin https://gitee.com/<用户名>/<仓库名>.git

Here<Username> refers to your Gitee account username, <Warehouse Name> It refers to the name of the sample warehouse you created or the teacher gave you.

After the addition is completed, you can use the following command to submit the code or documents to the warehouse:

$ git add .
$ git commit -m "提交作业"
$ git push -u origin master

The master here means submitting the code or documents to the master branch.

Step 3: Submit the homework link or screenshot to the teacher

Send your warehouse link or warehouse screenshot to the teacher for the teacher to review the homework results. You can find your warehouse link on the Gitee website, or find the .git folder in the previous directory of the local Git warehouse, and then upload it to the cloud disk or send it to the teacher.

Summary

The above are the steps for submitting assignments to Gitee. I hope it will be helpful to students who need to use Gitee to submit assignments. When submitting assignments, you should pay attention to protecting personal privacy and intellectual property rights, and do not disclose your code or documents at will. At the same time, you must also pay attention to abide by the regulations of the course or training and submit assignments on time to obtain good grades and learning effects.

The above is the detailed content of How to submit assignments on Gitee?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn