KonishiLee's Blog

标签 Git

GIT

添加用户:

1
git config —global user.name 'KonishiLee'
1
git config —global user.email 'konishilee@qq.com'

本地化仓库:

1
2
3
4
5
6
mkdir xxx
git init
git add .
git commit -m ‘first commit’
git remote add origin git@github.com:KonishiLee/xxx.git
git push -u origin master

SSH使用

1
2
3
ssh-keygen -C 'yourmail@server.com' -t rsa
cd ~/.ssh
copy id_rsa.pub into your github ssh key
如果喜欢这个分享,就帮忙买杯咖啡吧