git基础

作者: Seaofdesire | 来源:发表于2018-03-07 22:18 被阅读0次

    git上传项目到github

    • 先决条件
    1. github账号
    2. 安装git-for-windows工具
    • 步骤
    1. github创建一个仓库并复制地址
      https://github.com/licer-lee/spring-clean
    2. 本地目录下git bash here 克隆项目
      git clone https://github.com/licer-lee/spring-clean
      cd spring-clean
    
    
    1. 复制项目到spring-clean目录中
      git commit -m "注释"
      git push -u origin master
    
    
    1. 输入账户密码等待推送结果。

    ps: 过程中可能需要设置user.email 和user.name

    相关文章

      网友评论

          本文标题:git基础

          本文链接:https://www.haomeiwen.com/subject/ernsfftx.html