github how to create / delete a folder? Nanny-level ultra-detailed steps to explain, look at this article is enough!

table of Contents


1. Download
2. Create a folder (do not need to create tools)
3. Delete the folder

  
  

1. Download

  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].

  
  

2. Create a folder
  Creating folders and create files, just the file name more months "/" to

It should be noted that, github no empty folder, so be sure to have a file
  
Here Insert Picture Description
  
  

3. Delete the folder
     Method 1: Delete the files inside a folder means that you may not need, and provides file delete button on github page end, so when a small number of file folder, you can delete the files, then you can achieve the purpose delete the folder (github does not allow an empty folder exists).

          
Operation is shown:

Here Insert Picture Description
  
  
  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
  
Here Insert Picture Description
  
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
  
Here Insert Picture Description
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:
  
Here Insert Picture Description
  
Here Insert Picture Description
  
Here Insert Picture Description
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 ].

Released six original articles · won praise 23 · views 2010

Guess you like

Origin blog.csdn.net/weixin_43894786/article/details/105214666