Unable to create a local repository in GIT #23382
-
Unable to create a local repository .git in the project folder. .git folder is not visible in the folder. Please support me with a solution. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Yes, I was using the command git init from the git bash. Initialized empty Git repository in C:/ShreyasBKR_Project/.git/ But unable to view the .git folder. I have checked for invisible folders also. |
Beta Was this translation helpful? Give feedback.
-
bharatbondada:
There’s something strange here, you mention the path being
bharatbondada:
But you’re mentioning it in the path. That’s the Git folder. You should try this: navigate in Bash or CMD to
this will give you either information about the repository status, or an error that it’s not a repository folder.
bharatbondada:
It looks like you’re working under Windows (always mention your OS when asking for help!), so yes you need to configure File explorer to show hidden and system folders if you want to see the contents of the But I advise you to not tamper (nor worry) with the |
Beta Was this translation helpful? Give feedback.
There’s something strange here, you mention the path being
C:/ShreyasBKR_Project/.git/
, but the presence of a.git/
folder indicates thatShreyasBKR_Project/
is already a repository.But you’re mentioning it in the path. That’s the Git folder.
You should try this: navigate in Bash or CMD to
C:/ShreyasBKR_Project/
and type:this will give you either information about the repository status, or an error that …