Delete folders in Github

5

I commited my project to github and after a while, some folders would not have to be there anymore. I have knowledge that it is possible to manually delete github, but for this to happen, I need to delete file by file to the sumir folder.

The situation is this: When I created my project, there were the Landing and Email folders, but since I no longer need those folders, I created the img folder and unified the files inside that folder. When I changed and uploaded the project again, the img folder appeared correctly, however the Landing and Email folders did not disappear, even though I used git rm and deleted them. By git status it appears that they have been deleted, but in my repository in github they still appear.

Is there another way to delete, not being manually in github?

    
asked by anonymous 26.01.2016 / 12:17

1 answer

8

Well, let's go there:

  • First make sure your repository is synchronized with the remote repository: $ git pull origin master , (assuming the branch is master).
  • Then remove the folder locally: $ git rm -r Landing Email .
  • Now commit the modifications: $ git commit -m "Remove pastas Landing e Email"
  • Synchronize with remote repository: $ git push origin master
  • After these changes the remote repository must be without the Landing and Email folders.

        
    26.01.2016 / 12:54