Gitee is a well-known domestic code hosting platform, widely used for individual and team code management. But sometimes, we need to delete uploaded files. This article will introduce you how to delete files in Gitee.
Step one: Enter the warehouse
First, you need to log in to the Gitee platform and enter the corresponding warehouse where you want to delete the file. If you haven't created a warehouse yet, please create it first.
Step 2: Select the file
On the warehouse page, you can see all the files in the warehouse displayed in the list. Browse through the list to find the file you want to delete. Place the mouse on the file name and a small icon will appear. Click the icon and you will see the file-related menu. Select "Delete", enter "Confirm deletion" in the pop-up window, and click the "OK" button.
Step 3: Submit changes
Once you click the "OK" button, the file is deleted. However, this modification still needs to be "committed" to the warehouse. So, after deleting the file, click on the "Submit Changes" button to commit the changes. This way, others can see the updated repository.
Note: This method can only delete a single file. If you want to delete an entire folder, you need to go into the folder and click "Delete" in the same way.
Step 4: View the history record
If you are not sure whether you need to delete the file, or you have deleted the file by mistake, you can view the history record of the file. Click the "History" button above the file name to view all versions of the file. You can select the version you want to restore and click Restore.
Summary
Deleting files in Gitee is very simple. Just go to the corresponding repository, find the file you want to delete, and follow the steps mentioned above. Make sure to commit your changes after all changes are complete so that others can see your changes.
The above is the detailed content of How to delete files in Gitee. For more information, please follow other related articles on the PHP Chinese website!