Git: Where exactly is the “working directory”?

后端 未结 6 621
抹茶落季
抹茶落季 2021-02-01 04:08

I am going through some Git tutorials. The concept of a \"working directory\" keeps being mentioned, however, none of the tutorials or documents I read points out where

6条回答
  •  天命终不由人
    2021-02-01 04:48

    Its is wherever you have checkout the project. For example the directory within which you have checked out a branch of your project. Its is typically the folder that contains the .git folder. That is the working directory. When you make changes to files in your checked out branch you make changes to the working directory. At this point the working directory has uncommitted changes. So initially when you haven't made any commits the working directory will be clean as there are no changes.

提交回复
热议问题