-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgithub-blog
49 lines (29 loc) · 1.19 KB
/
github-blog
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# github 账号下,创建一个同名的repo, shake.github.io
#win10
1:安装git windows版本
2:设置ssh key
ssh-keygen -t rsa -C "[email protected]"
#admin .ssh 文件夹下有相应的文件。把公钥放到github上
#在 shake.github.io 添加key
#验证key 是否生效
ssh -T [email protected]
Hi shake/shake.github.io! You've successfully authenticated, but GitHub does not provide shell access.
#初始化命令
git config --global user.name "shake"
git config --global user.email "[email protected]"
#查看环境:config 配置有system级别 global(用户级别) 和local(当前仓库)三个 设置先从system-》global-》local 底层配置会覆盖顶层配置 分别使用--system/global/local 可以定位到配置文件
##查看系统config
git config --system --list
##当前用户的全局变量
git config --global --list
##查看当前仓库配置信息
git config --local --list
git clone [email protected]:shake/shake.github.io.git
cd shake.github.io
echo "# shake.github.io" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:shake/shake.github.io.git
git push -u origin main