Git checkout/pull doesn't remove directories?

前端 未结 5 2095
暗喜
暗喜 2020-11-30 17:57

I\'ve got my repo @ github. I did some work at home and pushed it to github. It involved some deleting of files and directories. Now I\'m on my work box, which had a copy of

5条回答
  •  失恋的感觉
    2020-11-30 18:40

    Git doesn't track directories, so it won't remove ones that become empty as a result of a merge or other change. However, you can use git clean -fd to remove untracked directories (the -fd flag means force removal of untracked files and directories).

提交回复
热议问题