I worked on the project, arranged the directories more logically and deleted unnecessary directories. Zakommitil changes and flooded on githab. But it turned out that remote directories, which are no longer in the local repository, are preserved on the githaba. How to remove them from there?

$ git status
On branch master
Your branch is up to date with 'origin / master'.
Changes not staged for commit:
(use "git add / rm ..." to update what will be committed)
(use "git checkout - ..." to discard changes in working directory)
deleted: components / tick / tick.js
Untracked files:
(use "git add ..." to be in what will be committed)
.gitignore
no changes added to commit (use "git add" and / or "git commit -a")

  • Check if those directories are in .gitignore, by chance? - test123
  • @ test123, no, they are not. - typemoon
  • Another clarification. Deleted directories remained in one of the commits of old versions? Or in the current commit, in which you are now? - test123
  • @ test123, I received the following message: On branch master: up to date with 'origin / master'. Changes not staged for commit: (use "git add / rm <file> ..." for update what will be committed) (use "git checkout - <file> ... for discard changes in working directory) deleted: components / tick / tick.js Untracked files: (use "git add <file> ...") change it no changes added to commit (use "git add" and / or "git commit - a ") - typemoon
  • one
    deleted: components / tick / tick.js - you need to delete the file not only from the file system (more precisely, you didn’t have to delete it, git can do it yourself), but also from the storage: git rm путь/имя-файла . and then commit and send to github. - aleksandr barakin

0