*github使用

 本地克隆远程仓库

  1. 下载git软件,git-bash:https://git-for-windows.github.io/
  2. 配置本地账号
    git config --global user.name myangme
    git config --global user.email mymail@qq.com
  3. 生成SSH:git-bash命令 (如果之前生成过,可忽略这一步,通过cat ~/id_rsa.pub查看之前是否生成过)
    ssh-keygen -t rsa -b 4096 -C "myemail@qq.com"
  4. 设置远程仓库端账户SSH公钥:复本本地公钥配置到远程仓库端(查看本地公钥命令:cat ~/id_rsa.pub)
    远程仓库端是指github.com,coding.net等提供的远程仓库服务。
  5. 克隆远程仓库到本地:git clone https://git.coding.net/myaccount/mygit.git
  6. 推送本地更改到远程:git push origin master

  更多git命令参考:http://www.cnblogs.com/ybtools/p/6650265.html

 github使用

原文地址:https://www.cnblogs.com/ybtools/p/6652265.html