Use local Git repository delete files and remote warehouse

Use git bash to delete

First, the file (folder) is added to the staging area

It is assumed that the local and remote have a test.txt file
image
to delete locally, through- git statusview
image
by git add test.txtadding to the staging area

Large columns  using Git repository delete local and remote file repository update local repository "> Second, update the local warehouse

Performed git commit -m "删除test.txt"wherein the information is used later described -m.
image

Third, update GitHub repository

Execution git push origin master
image
after we see the github repository disappeared
image

Other such as updating, adding operations are similar.

Guess you like

Origin www.cnblogs.com/lijianming180/p/12360811.html
Recommended