Home > Article > Web Front-end > How to delete files or folders in github remote repository
1. Clone the remote repository to the local repository
$ git clone 仓库地址
2. Perform the following operations on the files and folders that need to be deleted
$ git rm xxx.txt (删除文件)$ git rm -r xxx (删除文件夹)
3. Submit the changes
$ git commit -m "Delete xxx"
4 .push to the remote warehouse
$ git push origin master
The above is the detailed content of How to delete files or folders in github remote repository. For more information, please follow other related articles on the PHP Chinese website!