gitgit-for-windows

git init not initializing git repo in directory


I am just trying to run the git init command, with a fresh copy of git installed; as of writing this version git version 2.47.1.windows.2, and their is not .git directory in the main directory. I run the command again and get this A screen snippet of my command line showing the git repo is being "Reinitialize", but actual is never.

Is any else experiencing this problem, what am I doing wrong as it has been about 9 months since I lasted used git, and git init is usually the very first command to be ran. What am I doing wrong.


Solution

  • Files and folders starting with a dot are hidden. This might explain you don't see the .git folder.

    Using the git status command also reveals the git repository is actually present.

    Command prompt