Home > Web Front-end > JS Tutorial > body text

How to delete files or folders in github remote repository

一个新手
Release: 2017-09-23 10:27:44
Original
1999 people have browsed it

1. Clone the remote repository to the local repository

$ git clone 仓库地址
Copy after login

2. Perform the following operations on the files and folders that need to be deleted

$ git rm xxx.txt (删除文件)$ git rm -r xxx (删除文件夹)
Copy after login

3. Submit the changes

$ git commit -m "Delete xxx"
Copy after login

4 .push to the remote warehouse

$ git push origin master
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template