[GitHub] How To Delete Folders And Files | Learn Version Control With Git
Có thể bạn quan tâm
The web interface on GitHub.com allows you to do basic editing tasks. You can delete a specific file after opening its detail view and then clicking on the little trash can icon:

However, you cannot delete multiple files in one go nor can you delete folders in the GitHub web interface.
These tasks must be performed in a local repository, after cloning it to your computer. For an in-depth tutorial on how to clone and work with a local repository, take a look at our free online book on learning Git.
How to Delete Files and Folders in a Local Git Repository
If you're using Git in a desktop GUI like the Tower Git client, you can simply select one or more items - both files and folders - and delete them:
In case you're using Git on the command line, you can use the following commands:
# To delete a file: $ git rm my-file.txt # To delete a folder, add the '-r' option: $ git rm -r my-folderAfter deleting the file or folder, don't forget to commit the deletion to record it in the repository.
The Git Cheat Sheet
No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!
Download Now for FreeLearn More
- Check out our command overview on git rm
Related Questions
- Git vs. GitHub: What is the Difference?
- Using GitHub on the Desktop
- How to delete a branch on GitHub
- How to push to GitHub
- How to delete a repository on GitHub
- How to fork a repository on GitHub
- What is a GitHub Gist?
For additional Git-related questions (and answers!), visit our FAQ homepage.
Từ khóa » Xóa Github
-
Làm Sao Tạo Và Xoá Một Repository Trên GitHub? - Openplanning
-
Deleting Your Personal Account - GitHub Docs
-
Deleting A Repository - GitHub Docs
-
Deleting A Project (classic) - GitHub Docs
-
Deleting An Issue - GitHub Docs
-
Gh Repo Delete - GitHub CLI
-
Deleting Files In A Repository - GitHub Docs
-
Gh Release Delete - GitHub CLI
-
Github Hướng Dẫn Xóa Repository - YouTube
-
How To Delete A GitHub Repository - Rewind Backups
-
How To Delete A Branch On GitHub - Tower Git Client
-
How Do You Delete A GitHub Repository? - GitKraken
-
Is It Safe To Delete A Pull Request? Is It Better To Add A New One?
-
Delete A Branch With An Open Pull Request | GitHub Changelog