Git: Where exactly is the “working directory”?

后端 未结 6 544
抹茶落季
抹茶落季 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条回答
  •  萌比男神i
    2021-02-01 04:41

    According to the documentation:

    Finally, you have your working directory. The other two trees store their content in an efficient but inconvenient manner, inside the .git folder. The Working Directory unpacks them into actual files, which makes it much easier for you to edit them. Think of the Working Directory as a sandbox, where you can try changes out before committing them to your staging area (index) and then to history.

提交回复
热议问题