What does git-rm mean by working tree and index?
问题 The documentation for git-rm contains this short description: git-rm - Remove files from the working tree and from the index What exactly is meant by the working tree and the index, and which local or remote files will be removed? 回答1: The "working tree" is your checkout of the files sitting on disk. The "index", "staging area", or "cache" (you'll see it referred to as all three) is internal to Git. It's the space you prepare the next commit. When you git add you're copying the files from the