table of Contents
1. Download
2. Create a folder (do not need to create tools)
3. Delete the folder
As we all know github web client can only delete files, so when you accidentally create unnecessary folders you want to delete can only be used to solve the git command, [ Click here ] to download the tools you need to extract the code [rndr].
It should be noted that, github no empty folder, so be sure to have a file
Operation is shown:
Method 2: git with github client and tools to achieve (the beginning of the file downloads in the article)
Test file to delete a folder you created, for example
step1: github client and install git, github client login and cloning project
step2: Locate the directory after you clone (At this point there should be a .git folder, if not also all right just hidden), right click and select bash here Wallpaper git
step3: input commands to operate
1. git pull origin master
// project pull remote warehouse
2. dir
// Check directory
3. git rm -r --cached test
// delete the test folder
4. git commit -m '删除了test'
// commit
5 . git push -u origin master
// sync your changes with github
Not surprisingly, then it would be the following situation:
you're done!
Unexpected words may prompt you when you submit commit the following error:
*** Please tell me who you are.
Solution:
Run the following two lines of code to run the code above <5> to, the following information into your characters:
git config --global user.email “你的邮箱”
git config --global user.name “用户名”
Share more concerned about the [ My CSDN ] and [ my github ].