首页 > 代码库 > git操作汇总

git操作汇总

  1. 创建SSH Key:ssh-keygen -t rsa -C "myemail@gmail.com",设置
  2. C:\Users\Administrator\.ssh下的id_rsa、id_rsa.pub两个文件
  3. 登陆到code网站,添加New SSH Key,id_rsa.pub添加到输入框中
  4. git init//初始化
  5. git clone git@code.aliyun.com:softfuwushe/dev.git//克隆git
  6. git add .//添加
  7. git commit -m "init"//提交
  8. git push -u origin master//push到git

git操作汇总