黄沙百战穿金甲,不破楼兰终不还。这篇文章主要讲述Android studio中Terminal中使用git(Windows环境)相关的知识,希望能为你提供帮助。
【Android studio中Terminal中使用git(Windows环境)】因为之前用的是Mac Pro,现在公司使用的是PC机,这2种系统AS的terminal使用还是有点不一样。
1、下载git,进行安装(下载地址:
http://git-scm.com/downloads)
2、把gitbash替换掉as的默认的终端(cmd),
settings--->
tools--->
Terminal中的shell path 填上 :D:\\...(因自身情况而定)..\\Git\\bin\\bash.exe

文章图片
3、

文章图片
4、

文章图片
5、重启as,之后clone发现出现一个问题

文章图片
可以看出是ssl认证出错,使用git config --global http.sslVerify false将git的认证关闭即可

文章图片
成功
推荐阅读
- android中调用c++文件并转为so
- Agora Android SDK-开始聊天
- Android底部虚拟按键遮挡PopWindow问题
- Android活动的启动模式
- Androidstudio中添加jar包的方法
- react-native android 运行命令
- @RequestMapping @ResponseBody 和 @RequestBody 注解的用法与区别
- Android Internals.A第一章
- 安卓(自定义字体)