git基本命令

1. 克隆仓库(http地址和ssh方式)

git clone  地址

2. 拉取库更新

git pull

3.上传本地数据到库

git add --all

git commit -m "备注"

git push origin master(如果是ssh,可以不用) 

4.产生本地的ssh密钥

git config --global user.name"your name"

git config --global user.email"your email"

ssh-keygen -t rsa -C "you counter"

 

posted on 2016-11-07 10:44  魄灠  阅读(137)  评论(0编辑  收藏  举报