Git的使用技巧

   Git的使用技巧:

GitHub简介

Git SSH Key

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Linux

$ ssh-keygen -t rsa -C "mail@gmail.com"

//这的密码不是我们,GitHub的密码,而是Git SSH的密码

//保存SSH密码
$ eval "$(ssh-agent -s)" //Linux
$ ssh-agent -s //Windows

$ ssh-add ~/.ssh/id_rsa

//打开Git生成的密码文件,将其复制到GitHub上
$ vim ~/.ssh/id_rsa.pub

//验证GitHub SSH是否成功
$ ssh -T git@github.com

## Git远程协作

git clone

//数据更新以及同步的协议
git clone


git fetch
git pull
文章目录
  1. 1. GitHub简介
    1. 1.1. Git SSH Key
,