Home  >  Article  >  Web Front-end  >  How to delete files or folders in github remote repository

How to delete files or folders in github remote repository

一个新手
一个新手Original
2017-09-23 10:27:441996browse

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!

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