我已经安装了git,我可以将我的github repo克隆到我的电脑上。
但是,正在运行git status
呕吐My Documents
中所有文件和目录的列表,即使我已进入My Documents/GitHub/hello_world
。我假设您在不同的目录中有不同的项目,您希望git status
显示当前工作目录的状态但不是吗?
我试图搜索这个主题,它似乎主要指向更改$ HOME路径,我已经做了无法解决此问题。
我已经完成了几个关于设置git的教程,但没有一个提到这个问题的可能性或如何修复它。
编辑:这是git status
从任意目录运行的输出:
C:\Users\Takkeezi\Documents\GitHub>git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
../../.DS_Store
../../.PyCharm2016.1/
../../.VirtualBox/
../../.android/
../../.atom/
../../.bash_history
../../.config/
../../.gimp-2.6/
../../.gitconfig
../../.gtk-bookmarks
../../.idlerc/
../../.kivy/
../../.matplotlib/
../../.node_repl_history
../../.octave_hist
../../.oracle_jre_usage/
../../.ssh/
../../.thumbnails/
../../.ticables/
../../.zenmap/
../../1uMNFkanFSH
../../AUTORUN.INF
../../AppData/
../../Contacts/
../../Desktop/
../
../../Downloads/
../../Dropbox/
../../FILES/
../../FL Studio Producer Edition 11.0.4+Plugins Bundle R2R [ChingLiu]/
../../Favorites/
../../INSTMSI.EXE
../../INSTMSIW.EXE
../../Links/
../../MSDE2000/
../../Microsoft Office XP Publisher 2003.zip
../../Music/
../../NTUSER.DAT
../../NTUSER.DAT{cfe0026b-8a67-11e6-bf4f-aa077fecf1e7}.TxR.0.regtrans-ms
../../NTUSER.DAT{cfe0026b-8a67-11e6-bf4f-aa077fecf1e7}.TxR.1.regtrans-ms
../../NTUSER.DAT{cfe0026b-8a67-11e6-bf4f-aa077fecf1e7}.TxR.2.regtrans-ms
../../NTUSER.DAT{cfe0026b-8a67-11e6-bf4f-aa077fecf1e7}.TxR.blf
../../NTUSER.DAT{cfe0026c-8a67-11e6-bf4f-aa077fecf1e7}.TM.blf
../../NTUSER.DAT{cfe0026c-8a67-11e6-bf4f-aa077fecf1e7}.TMContainer00000000000000000001.regtrans-ms
../../NTUSER.DAT{cfe0026c-8a67-11e6-bf4f-aa077fecf1e7}.TMContainer00000000000000000002.regtrans-ms
../../OFFICE1.CAB
../../ORK/
../../OWC10.MSI
../../OneDrive/
../../PROPLUS.MSI
../../Pictures/
../../PycharmProjects/
../../README.HTM
../../SETUP.EXE
../../SHAREPT/
../../Saved Games/
../../Searches/
../../Thumbs.db
../../Tracing/
../../Videos/
../../VirtualBox VMs/
../../advanced_ip_scanner_MAC.bin
../../cd-key.txt
../../hw2.c
../../ntuser.dat.LOG1
../../ntuser.dat.LOG2
../../ntuser.ini
../../pip/
../../qms-bmh1.bmp
../../qms-bmh2.bmp
../../qms-bmh3.bmp
../../quartus2.ini
../../quartus2.qreg
../../quartus_web_rules_file.txt
../../riotsGamesLogs/
../../workspace/
../../workspace2/
../../wtf.txt
nothing added to commit but untracked files present (use "git add" to track)
答案 0 :(得分:0)
所以你将远程存储库克隆到/My Documents
目录?您的远程存储库名称是hello_world
?如果是,您应该进入My Documents/hello_world
目录,然后尝试使用git status
。
答案 1 :(得分:0)
您(可能是偶然)在C:\Users\Takkeezi
中初始化了一个git存储库。使用rm -rf C:\Users\Takkeezi\.git
删除它。