(Windows 7)Github 切换到 Bash Shell,打开 Shell 蓝屏。之后无法彻底删掉 Github。

2012-06-22 12:20:50 +08:00
 qiukun
同志们小心
4052 次点击
所在节点    分享发现
2 条回复
xupefei
2012-06-22 12:23:46 +08:00
打开 Shell 倒是不蓝屏,不过没法卸载倒是真的…… GitHub 需要手动进目录删文件,GitHub下载回来的 git 命令行也需要手动删
qiukun
2012-06-23 06:24:02 +08:00
// Please reply above this line
==================================================
From: Phil Haack (GitHub Staff)
Subject: How to uninstall Github for Win entirely?

Hi Qykcdgm

First, make sure to use the Program and Features control panel applet to uninstall GitHub for Windows.
On Windows XP this is called "Add or Remove Programs".

After uninstalling GitHub for Windows, there might be some files left behind on the system. GitHub for Windows uses ClickOnce as its installer and ClickOnce doesn't fully clean up after itself.

For the most part, these files are harmless. If you are really concerned about them, you can delete the following files:

1. The `GitHub` and `Git Shell` shortcuts
2. The `GitHub` folder in the Local and Roaming app data directories:
* On `Windows Vista` or higher, this will be the `%LocalAppData%\GitHub` and the `%AppData%\GitHub` directories.
* On `Windows XP` this will be the `%USERPROFILE%\Local Settings\Application Data\GitHub` directory. Note that this path may be in a different language if you're using a non-English version of Windows.

There will still be some files left in the ClickOnce Application Cache. You can run the following command to clear the application cache. Note, this clears the cache for _all_ ClickOnce applications.

1. Hold down the `Windows` key and type `R`.
2. Type in `rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache` in the run dialog and hit `Enter`.

Running the command might not clear every file. If you want to be absolutely thorough, you can delete the ClickOnce Application folder.

* On `Windows Vista` or higher, this will be the `%LocalAppData%\Apps\2.0` directory.
* On `Windows XP` this will be the `%USERPROFILE%\Local Settings\Apps\2.0` directory. Note that this path may be in a different language if you're using a non-English version of Windows.

Lastly, there will be one registry key you'll need to delete:

HKEY_CURRENT_USER\Software\Classes\github-windows

This is the protocol handler that makes the "Clone in Windows" button on GitHub.com launch the application.

Phil

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/40265

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX