Error : Fatal: Not a git repository (or any of the parent directories): .git

后端 未结 5 901
醉梦人生
醉梦人生 2021-01-12 08:54

When I try to put images into the Resources folder of my project, I got this message :

fatal: Not a git repository (or any of the parent directories): .git
<         


        
5条回答
  •  迷失自我
    2021-01-12 09:39

    In order to do anything in Git, you have to have a Git repository. This is where Git stores the data for the snapshots you are saving.

    so just go into your project directory let say you have a project name test_project just go into that directory and type the command

    git init
    

    and this will work.

提交回复
热议问题