Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the local repository located?

Tags:

git

From Wikipedia:

enter image description here

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

like image 791
WinWin Avatar asked Jan 13 '12 19:01

WinWin


People also ask

Where are Git repository stored locally?

The default location that Git Bash starts in is typically the home directory (~) or /c/users/<Windows-user-account>/ on Windows OS. To determine the current directory, type pwd at the $ prompt. Change directory (cd) into the folder that you created for hosting the repository locally.

What is local repository folder?

2. The Local Repository. Maven's local repository is a directory on the local machine that stores all the project artifacts. When we execute a Maven build, Maven automatically downloads all the dependency jars into the local repository. Usually, this directory is named .

What is local repository in Git?

Git local repository is the one on which we will make local changes, typically this local repository is on our computer. Git remote repository is the one of the server, typically a machine situated at 42 miles away.


1 Answers

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.

like image 130
Greg Hewgill Avatar answered Oct 19 '22 13:10

Greg Hewgill