相关疑难解决方法(0)

Git for Windows:.bashrc或Git Bash shell的等效配置文件

我刚刚安装了Git for Windows,很高兴看到它安装了Bash.

我想以与Linux相同的方式自定义shell(例如设置类似ll的别名ls -l),但我似乎无法找到.bashrc或等效的配置文件.

我该怎么编辑?

windows git git-bash

230
推荐指数
9
解决办法
18万
查看次数

Python无法在git bash的命令行中运行

Python不会在git bash(Windows)中运行.当我在命令行中键入python时,它将我带到一个空白行,而不是说它已经像在Powershell中那样输入了python 2.7.10.它没有给我一个错误消息,但python只是不运行.

我已经确定了PATH中的环境变量c:\python27.我还能检查什么?


发生此问题的会话如下所示:

user@hostname MINGW64 ~
$ type python
python is /c/Python27/python

user@hostname MINGW64 ~
$ python
Run Code Online (Sandbox Code Playgroud)

......坐在那里而不回到提示.

python windows git command-line git-bash

192
推荐指数
11
解决办法
11万
查看次数

Git Bash没有看到我的PATH

当我使用Git Bash(在Windows上)时,我不能在没有指定其完整路径的情况下运行任何可执行文件,尽管它位于我的PATH变量中的文件夹中.看起来bash无法识别它.为什么?我可以修理吗?

windows bash git-bash

93
推荐指数
7
解决办法
15万
查看次数

标签 统计

git-bash ×3

windows ×3

git ×2

bash ×1

command-line ×1

python ×1