Home >Development Tools >git >How to submit assignments on Gitee?
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:
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!