7

Git 学习日志之一 - 安装 Git

 3 years ago
source link: https://cuiqingcai.com/9336.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Git 学习日志之一 - 安装 Git

Payne 2020-05-24Other 52313 661 1 分钟

这篇文章是我近日学习 git 的笔记,单纯想做个 “云备份什么的”,所以的话侧重点就有点偏。

Git 的来源、用处相信大家都或多或少的了解,如果真的想知道的话请自行百度哈~

Git 的安装:

推荐镜像安装:https://npm.taobao.org/mirrors/git-for-windows/ Git 官网地址

https://git-scm.com/

Git 安装相关简介):

https://git-scm.com/download

各系统的安装 (并非唯一方式!)

Window Git 下载地址:

https://git-scm.com/download/win

git%E5%AE%89%E8%A3%851.png
Git%E5%AE%89%E8%A3%852.png
选择相对应的版本下载即可,下载完成后打开相对应的安装执行,有选项的选择的建议点击第一个默认配置,就不在此过多赘述啦。

MacOS:在命令行中输入以下命令即可

brew install git

MacOS.png
以上的网页地址为: https://git-scm.com/download/mac

Linux:(sudo: 以管理员权限运行相关的命令,中间的‘-y’:默认同意安装)

在这里以 Ubuntu 为例:

Linux.png
Ubuntu:

apt-get install git apt-get -y install git sudo apt-get install git sudo apt-get -y install git

更加具体的可自行查阅 Linux 系统安装 Git 相关:

https://git-scm.com/download/linux

Git 和代码托管中心

代码托管中心的任务:维护远程库

局域网环境下:

  • 可搭建 GitLab 服务器

外网环境下:

  • Github

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK