MAC系统如何下载安装Homebrew和git

news/2024/7/24 1:05:43 标签: mac, git, github, macos, 前端

git_0">MAC系统如何下载安装Homebrew和git


安装Homebrew:

Homebrew进入官网后复制里面的安装代码在命令行中输入:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
注意:国内大部分区域即使科学上网都会显示以下报错无法下载:
githubusercontentcom_port_443_Connection_refused_nbspnbspnbspnbsphttpsimgblogcsdnimgcn20201128172709796pngxossprocessimagewatermarktype_ZmFuZ3poZW5naGVpdGkshadow_10text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1RaT0Zfsize_16color_FFFFFFt_70_11">curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused     (无法连接到服务器端口)在这里插入图片描述

解决办法:

将Homebrew官方里面的安装代码换成国内资源的安装代码:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

一般选择  1:中科大下载源。然后按照里面提示的步骤即可完成安装Homebrew。
国内资源


安装git-scm.com/download/mac">git

安装完Homebrew后在命令行输入:

brew install git

即可完成安装git


http://www.niftyadmin.cn/n/984043.html

相关文章

vim python_VIM和Python –天生一对

vim pythonIt has come to my attention that somebody ‘round these parts has been preaching the gospel of Sublime Text 3. Well, as the resident senior developer (err, old fogey), I feel it’s my duty to provide a counterexample by way of the only TRUE Pytho…

服务器端开发技术

1. 多进程或多线程模型 多进程服务器:Apache,Nginx,lighttpd等服务器均为多进程模型,分为Master进程和Woker进程 多进程的优点:更强的容错性 - 一个进程挂掉不会导致整个系统崩溃,更好的多核可伸缩性 - 进程…

C语言动态走迷宫

曾经用C语言做过的动态走迷宫程序&#xff0c;先分享代码如下&#xff1a; 代码如下&#xff1a; 1 //头文件2 #include<stdio.h>3 #include<windows.h>//Sleep(500)函数调用此头文件4 #include<conio.h>//getch()函数调用此头文件5 #include<stdlib.h>…

IOS开发—App 在 IOS 8 的simulator运行时,定位卡死bug解决

2019独角兽企业重金招聘Python工程师标准>>> 在 iOS 8 上编译会出现以下 log &#xff1a; Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocat…

使用Nikola改造我的项目页面

A week ago, I was inspired to produce a new projects page for myself. The previous one was a trainwreck with a lot of hacks. Also hosted on GitHub Pages for some reason. 一周前&#xff0c;我受到启发为自己制作了一个新的项目页面 。 上一个是一个有很多骇人听闻…

JavaScript的特点和解析过程(JS笔记:一)

JavaScript的特点和解析过程(JS笔记:一) JavaScript的特点&#xff1a; js注释符 游览器不会解析。js是脚本语言 轻量级 解析型。 JS怎么解析的&#xff0c;解析的过程是什么&#xff1a; 被web游览器解析。 语言分析 分析是否有语法错误。预编译 执行之前需要做准备工作…

POJ3009 Curling

题目链接&#xff1a;http://poj.org/problem?id3009 题意&#xff1a;从2出发&#xff0c;要到达3&#xff0c; 0可以通过&#xff0c;碰到1要停止&#xff0c;并且1处要变成0&#xff0c; 并且从起点开始沿着一个方向要一直前进&#xff0c;直至碰到1&#xff08;或者3&…

LibreQDA公开发布

A news worthy of The Tryolabs’ Herald: 特鲁拉布斯先驱报的消息值得 We have just proudly released to the public LibreQDA, a Qualitative Data Analysis tool that we have developed alongside with the Universitat Autnoma de Barcelona and the Universidad de la…