Home > Article > Development Tools > How to delete files in the warehouse in gitee
In recent years, with the continuous development and popularization of Internet technology, more and more programmers have begun to use open source code sharing platforms for project development and collaboration. Among them, Gitee is one of the most popular code hosting platforms in China and has been widely recognized and used. However, during long-term project maintenance, we will inevitably encounter situations where some files need to be deleted. So, how to delete files in the warehouse on Gitee?
First of all, there are two ways to delete files on Gitee: deleting through the web page and deleting through the Git tool. This article will introduce both methods.
1. Delete through the Web page
2. Delete through Git tool
$ git rm <file></file>
where
$ git commit -m 'your reason for deleting file' $ git push origin branch
Where branch is the name of the branch to be pushed.
Summary
The above are the two methods of deleting files in the warehouse on Gitee. Note: Once a file is deleted, it can never be recovered. Therefore, please confirm that the operation is correct before deleting files, and back up relevant data according to project needs.
In addition to the above, please also abide by Gitee's relevant usage regulations, operate compliantly, and jointly maintain a good open source community environment. Thanks for reading and happy programming!
The above is the detailed content of How to delete files in the warehouse in gitee. For more information, please follow other related articles on the PHP Chinese website!