因为用不惯jetbrains里的git插件,所以我选择使用git bash,命令行操作
而每次打开bash定位到仓库又很麻烦,所以我选择将git bash嵌入到jetbrains里,比如IDEA、pycharm
下面以pycharm为例
- file-settings
- Tools-Terminal
- 修改shell path为你的git bash.exe 路径
- 选择
/
G
i
t
/
b
i
n
/
b
a
s
h
.
e
x
e
/Git/bin/bash.exe
/Git/bin/bash.exe为路径
- 下面的选项全选,apply - ok 即可
- 在使用时,我们直接 右键文件夹-open in-Terminal即可
- 下方的内嵌Terminal就成了git bash了
- 注意,在选择git bash路径时,不要选择
/
G
i
t
/
g
i
t
−
b
a
s
h
.
e
x
e
/Git/git-bash.exe
/Git/git−bash.exe,否则,打开Terminal时就会有弹窗了