While typing git init command in the dictionary in does not open a new repository file in the folder It shows- "Reinitialized existing Git repository in C:/Users/User/Desktop/MyProject/.git/" however in the folder - MyProject there is no actual git repository created. Could you please advise?
I tried to create a git repository file; opened the particular folder; typed cmd in the name of the folder; it opened command prompt and I typed git init; no repository created..
CodePudding user response:
You have a .git
directory inside of your project. Delete it and try again
CodePudding user response:
Open Your Folder
C:/Users/User/Desktop/MyProject
Go to in the menu bar
Delete the .git folder and Reinitialized git in the same folder
git init
After that your git is successfully initialized