How do you delete a file and delete items in the project on github

Delete on github project and delete items in a file

1. Delete the project code on github:

Case: Remove the test project

Click test file into the current page:

Click on the Settings button turns red setting up, enter the new page and scroll pulled
the bottom you can see the following interface:

Then click on the red circled button Delete this repository to delete this item,
then prompt box will pop up as follows:

Enter the name of the project needs to delete bomb box, and then click Remove, then pop up a page to verify
the password when you log on github, as follows:

Enter the correct password, click Confirm password authentication password, then delete the project
is successful, as shown below:

At this point your project file has been deleted successfully.

2. Delete a file on github:

Unable to delete a file on github, so use git command to delete a file.
Image file Delete project: Case

First, open the git client local file upload project, enter git pull origin master the
files on github again pulled down, as shown:

Then enter the command dir to view the files in the directory, as follows:

Then enter the command git RM -r --cached Image Image delete files on the disk, as shown below:

XZ$NR~]IZNH`5XU~4%YYF9R

Re-enter the command git commit -m 'delete image' Submit add a description,
as shown below:

Finally, enter the git push -u origin master update github repository,
as shown below:

Then your image file is deleted successfully, add the "Delete the image" on the project
description, as shown below:

Guess you like

Origin www.cnblogs.com/meijifu/p/12460002.html