【git】git使用

1.创建github账户

网站:https://github.com/ 

注册省略

2.ssk-key客户端配置

作用:不用每次push,clone代码不需要输入用户名+密码

生成ssh-key 
ssh-keygen -t rsa -C ""

  

3.克隆,拉去,推送

#状态
git status 

#初始化
git init

#添加所有文件
git add .

#提交
git commit -c "备注"


git remote add origin git@xxxgit.com

#推送
git push -u origin master
原文地址:https://www.cnblogs.com/totoro-cat/p/9915705.html