Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
桌面上的Windows.git存储库_Windows_Git - Fatal编程技术网

桌面上的Windows.git存储库

桌面上的Windows.git存储库,windows,git,Windows,Git,在Windows7中,我打开了“查看隐藏文件夹”,并在桌面上看到一个隐藏的.git存储库。我正在清理东西,想为什么不把它扔掉,想在某个时候我一定是把它放错了。但后来我意识到,可能是Dropbox或GitHub或类似的东西在使用它。你的桌面上为什么会有一个.git存储库?文件夹的大小是几Gig,这很奇怪。如果我不小心把它放在那里,那么它就不需要在那里。但是,有没有已知的应用程序将.git repo放在您的桌面上 现在,我只想重命名.git文件夹,看看是否有任何损坏…该.git文件夹用于git存储库

在Windows7中,我打开了“查看隐藏文件夹”,并在桌面上看到一个隐藏的.git存储库。我正在清理东西,想为什么不把它扔掉,想在某个时候我一定是把它放错了。但后来我意识到,可能是Dropbox或GitHub或类似的东西在使用它。你的桌面上为什么会有一个.git存储库?文件夹的大小是几Gig,这很奇怪。如果我不小心把它放在那里,那么它就不需要在那里。但是,有没有已知的应用程序将.git repo放在您的桌面上

现在,我只想重命名.git文件夹,看看是否有任何损坏…

该.git文件夹用于git存储库, 任何将Git存储库放在桌面上的程序都将是一个行为非常恶劣的公民。 很可能是你自己创建了回购协议,却忘记了

打开Git Bash,cd到桌面,运行两个命令查看存储库中的内容:

git status
git ls-files | less
git log

在使用该存储库之前,您无法看到任何中断


.git文件夹中必须有一个.config文件,打开它,您将看到此存储库的优先级,包括远程源和分支主机等。

首先使用git状态查看状态。我当然希望Dropbox不使用git。一份庞大的git报告表明,有东西正在跟踪对二进制文件(如图像)的更改。。。