Windows 10上的Git麻烦 [英] Trouble with Git on Windows 10
问题描述
此问题与任何git配置或存储库均无关,它与Program Gith Bash和OS Windows 10相关
一旦我在Windows配置文件上安装并自定义了Git Bash,它就开始了,它从没有出现在工具栏上的Git图标,这困扰着我. 因此,我开始寻求一些方法来修复它. (重新安装从未成功)
It began once I installed and customized Git Bash on my Windows profile, it never appeared the Git icon on the toolbar, which was bothering me. So I start to go after some ways to fix it. (reinstalling never worked)
为了消除我在Git Bash上所做的所有自定义设置,我从Windows注册表编辑器中删除了与Git相关的所有内容,当时我以为可以解决该问题,但只会使情况变得更糟.
In an attempt to erase all customizations I made on Git Bash I deleted everything related to Git from the Windows Registry Editor, which at the time I thought would solve the problem but only made it worse.
现在我什至无法启动我的Git Bash,它有点用,而且我所做的任何修改都没有撤消.
Now I can't even start my Git Bash, it's sort of useless, and none of the modifications I made was undone.
当我安装Git并尝试打开Bash时,它显示了我进行的视觉定制以及以下消息.
When I install Git and try to open the Bash it shows with the visual customizations I made + the following message.
推荐答案
First, try to type "bash" in a CMD where you have set up (for testing) a simplified PATH
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\Git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%MAVEN_HOME%\bin;%PATH%
然后简化您的.bashrc
以便检查导致这些错误消息的原因.
Then simplify your .bashrc
in order to check what causes those error messages.
I generally tend to rely on a simple Git installation, by unzipping PortableGit-2.19.0.rc2.windows.1-64-bit.7z.exe
anywhere I want.
这篇关于Windows 10上的Git麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!