admin管理员组

文章数量:1415119

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.

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.

Share Improve this question edited Feb 11 at 13:28 Guildenstern 3,9602 gold badges28 silver badges54 bronze badges asked Feb 11 at 12:58 GodofNooksGodofNooks 31 bronze badge 3
  • 1 How can you tell that it didn't work? The screenshot that you posted does not provide any information about this. – axiac Commented Feb 11 at 13:01
  • 2 What happens if you run git status in the Test folder directory? – axiac Commented Feb 11 at 13:02
  • 3 re initialising - means the folder already exists. – AD7six Commented Feb 11 at 13:27
Add a comment  | 

1 Answer 1

Reset to default 0

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

  • Display hidden files and folders using command prompt: dir /a
  • Display hidden files and folders using bash: ls -a

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

本文标签: git for windowsgit init not initializing git repo in directoryStack Overflow