简体   繁体   中英

How can I make the git repository the same as the folder on my computer

I've recently started using GitHub and created a blog there. I made several pushes and now when I inspect it on the GitHub, I can see several files that I've deleted from my local machine. Is there any ways to delete them from GitHub?

You can remove them from Git's index using git rm /path/to/file .

When you then run git status it should show the file you deleted. You can then commit your change as usual.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM