1,239
社区成员




Git 官方下载安装地址:
https://git-scm.com/download
根据自己电脑系统下载相应的安装包
检查系统有没有安装Git:
- $ git
- The program 'git' is currently not installed. You can install it by typing:
- sudo apt-get install git
Debian/Ubuntu
- $ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \ libz-dev libssl-dev
-
- $ apt-get install git
-
- $ git --version
Centos/RedHat
- $ yum install curl-devel expat-devel gettext-devel \ openssl-devel zlib-devel
-
- $ yum -y install git-core
-
- $ git --version
源码安装
编译并安装:
- $ tar -zxf git-2.28.1.tar.gz
- $ cd git-2.28.1
- $ make configure
- $ ./configure --prefix=/usr
- $ make all doc info
- $ sudo make install install-doc install-html install-info
方法一:
1.官网下载http://git-scm.com/download/mac
2.下载完成后点击安装包直接安装
方法二:
1.安装HomeBrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.安装 Git
$ brew install git@2.28.1
以管理员身份运行后,一直选择下一步安装即可,请注意,如果你不熟悉每个选项的意思,请保持默认的选项
安装完成后在桌面界面点击鼠标右键,会显示如下界面
检查git是否安装OK
键盘win+r,然后在弹出框中输入cmd,弹出如下界面,输入git,回车
弹出上图所示界面说明安装成功
TortoiseGit地址:https://tortoisegit.org/download/
它拥有专业的UI,可以通过直接访问Git流、子模块、远程repo管理器、本地提交搜索、支持Git大文件等可视化管理版本库,来执行Git任务和访问Git流。
Sourcetree地址:https://www.sourcetreeapp.com/
该电子书由 Git 官方出品,Gitcode 将中文版部署到了 pages 服务中,您可以在pc 和移动端畅快阅读。
https://codechina_dev.gitcode.host/progit2
GitHub是世界上最大的代码托管平台 https://www.github.com/。
CSDN 旗下独立的代码托管平台,免费、仓库大小、协作人数量等都不限制 https://gitcode.net/
GitLab 是一个用于仓库管理系统的开源项目,并在此基础上搭建起来的Web服务 https://about.gitlab.com/