git for windows - git init not initializing git repo in directory - Stack Overflow

I am just trying to run the git init command, with a fresh copy of git installed; as of writing this ve

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745210099a4616785.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信