Warm tip: This article is reproduced from stackoverflow.com, please click
git

Where is the local repository located?

发布于 2020-10-25 06:54:04

From Wikipedia:

enter image description here

Where is said "Local repository" located physically (in the file system)?

Questioner
WinWin
Viewed
1
Greg Hewgill 2012-01-14 03:12

The Working Directory is wherever your files are on your local machine. The Local Repository is the .git/ subdirectory inside the Working Directory. The Index is a conceptual place that also physically resides in the .git/ subdirectory.