如何删除在桌面上创建的git存储库 [英] How to remove git repository created on desktop

查看:365
本文介绍了如何删除在桌面上创建的git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心使我的桌面成为git存储库。如何从桌面删除与git相关的文件?

I accidentally made my Desktop a git repository. How to remove the git-related files from Desktop?


  • 我尝试转到C:/ User / my_user / Desktop并取消隐藏隐藏的git文件,但无法取消隐藏它们。

  • 然后我尝试使用Windows Powershell删除文件,但也没有列出这些文件。

  • 我也尝试过在GitExtensions中查找选项删除git文件的某些选项,但找不到任何此类选项。

  • 在Git GUI中找不到选项

  • I have tried to go to C:/User/my_user/Desktop and un-hide hidden git files but couldn't un-hide them.
  • Then I tried to delete the files using Windows Powershell but it isn't listing these files either.
  • I have also tried finding options in GitExtensions for some option to delete the git files but couldn't find any such option.
  • Couldn't find option in Git GUI

肯定有一个git存储库,因为我可以在右键菜单中使用 GitEx浏览选项。

There is a git repository for sure because I can use GitEx Browse option in the right click menu.

推荐答案

从桌面删除名为.git的隐藏文件夹

remove the hidden folder named .git from your Desktop

这篇关于如何删除在桌面上创建的git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆