mac快速安装git
2023-09-11 14:17:27 时间
前提
每次安装git,都需要安装xcode,我不需要xcode 而且这厮还极其的大,下载慢。
找到一个办法【如果你不需要 Xcode,只安装 Xcode Command Line Tools 就可以了】分享如下
安装xcode-select
方式1: 使用命令行安装
xcode-select --install
方式2: 使用安装包
如果如上命令卡住没反应,还可以手动去apple开发者平台,在搜索框搜索 Command Line Tools下载dmg安装
确认安装成功
xcode-select --version // 查看版本
安装git
brew是mac下的包管理器,默认源在国外,需要切换国内源,否则会很卡。
然后执行安装git命令即可。
brew install git
相关文章
- PostGreSQL(1)-源码安装
- git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).
- Mac安装Git以及Git和Github使用教程
- [Practical Git] Diagnose which commit broke something with git bisect
- [Practical Git] Compare file changes with git diff
- Git远程02:git clone都做了什么
- Ubuntu安装Docker引擎和支持HTTPS的docker-registry服务
- 【网址收藏】在win10中使用Minikube安装Kubernetes
- vscode中reactjs插件的安装
- Linux系统centos下Nodejs安装方法
- win8硬盘安装Ubuntu14.04双系统參考教程
- centos 源码编译安装nginx 1.18.0 教程 nginx安装脚本
- 005-mac下Java开发工具安装,idea,maven,git,node
- git-【一】概述安装
- Git安装以及配置SSH Key——Windows
- 一文吃透 VS Code+Git 操作(vs code中git的相关配置与使用)
- 安装git后生成ssh公钥方法
- git安装后设置用户名和密码
- GIT ---- 常用 Git 命令清单
- RHEL8安装tmux不间断会话服务
- 查找Linux系统中某个软件是否安装/存在
- [Git & GitHub] Windows安装git和环境变量配置
- CentOS 7 安装 Ansible