5picyLi5a
5picyLi5a

Reputation: 21

Can't find local git repositories

Okay, so when I initialize a local repository using git init, I know that I created a repository. Because, I use the following command in git bash to find the repository that I just created:

find ~ -type d –name .git

And it finds the repository exactly as I thought. However, then when I go and try to navigate to that folder in using the change directory commands in git bash, none of the .git folders are showing up.

I give the command ls to show the contents, and none of my repositories show up.

Why is this? Thanks very much.

Upvotes: 0

Views: 3924

Answers (1)

Avinash Raj
Avinash Raj

Reputation: 174716

Because your .git directory is hidden. To list all the files or directories including hidden ones, you need to run ls -a command.

Upvotes: 5

Related Questions