How to remove deleted folder from remote repository in Git?

后端 未结 2 933
忘掉有多难
忘掉有多难 2021-02-19 23:15

i deleted a folder from my local Git repository then i committed and pushed the changes to the remote repository, the files are deleted but the folder and the sub folder are sti

2条回答
  •  -上瘾入骨i
    2021-02-19 23:52

    Git doesn't actually store directories. It just makes directories wherever it needs them to hold the files that are in the repository. If a new clone still creates those directories, make sure you don't have files you can't see (like .gitignore) present.

提交回复
热议问题