【Git】fatal: Not a git repository (or any of the parent directories): .git


登陸git bash窗口,查看git status報錯如下:

$ git status

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

 

skyman@SKYMAN-CF7E3587 ~

$ git checkout master

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

 

skyman@SKYMAN-CF7E3587 ~

ls查看下當前目錄吧,看到在根目錄下,那么進去namanu目錄去看看。

$ ls

AppData           Favorites       NTUSER.DAT  SendTo          _viminfo     manual56                    wc

Application Data  IECompatCache   NetHood     Templates       admovie.jpg  ntuser.dat.LOG              ??????????????????

CMB               IETldCache      PrintHood   UserData        client.log   ntuser.ini                  ??????

Contacts          Local Settings  PrivacIE    VirtualBox VMs  extensions   ntuserdirect_MyManager.dat

Cookies           My Documents    Recent      WINDOWS         helloworld   test_git

 

進入mana目錄

$ cd manual56/

 

skyman@SKYMAN-CF7E3587 ~/manual56 (master)

然后執行git命令

$ git status

# On branch master

nothing to commit (working directory clean)

 

skyman@SKYMAN-CF7E3587 ~/manual56 (master)

 

OK,搞定了,原來登陸不算的,需要進入master目錄,才能執行各種git操作命令,一時給忘記了,看來整個git流程還沒有完全徹底掌握透徹,需要繼續加油。

 再去執行git log查看最近master信息

$ git log

commit 3e96f9090fd8edb147cf23e428b64a3e49f14447

Author: mchdbagh <mchdba@yahoo.com>

Date:   Thu Sep 26 00:32:54 2013 +0800

 

    Test chanage

 

commit 9a8976f5979b15d4ef1c3768908a7a180e701bf5

Author: mchdbagh <mchdba@yahoo.com>

Date:   Thu Sep 26 00:32:17 2013 +0800

 

    Test chanage

 

commit e754e684c2c35c45d4df2517701eff0575efcd96

Author: mchdbagh <mchdba@yahoo.com>

Date:   Wed Sep 25 00:33:22 2013 +0800

 

    添加 17.5章節部分內容初稿

 

commit 3630b10aa84a65024602d60f70756384a62df757

 


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2020 ITdaan.com