zoukankan      html  css  js  c++  java
  • 如何将本地的项目推送至git仓库

    转载:https://www.jianshu.com/p/31dea20b0084

    1、cd projectName

    probjectName是项目文件夹的名字, 先进入项目文件夹
    

    2、git init

    通过命令把这个目录变成git可以管理的仓库 
    

    3、git add .

    把文件添加到版本库中,使用命令 git add .添加到暂存区里面去
        不要忘记后面的小数点“.”,意为添加文件夹下的所有文件
    

    4、git commit -m "first commit"

    用命令告诉Git,把文件提交到仓库。引号内为提交说明(注意:使用双引号,单引号可能失败)
    

    5、git remote add origin https://github.com/xxxxxxxxx/xxxx.git

    关联到你的远程库地址 
    

    7、git push -u origin master

    把本地库的内容推送到远程,用 git push命令,实际是把当前分支master推送到远程。
    执行此命令后会要求输入用户名、密码,验证通过后即开始上传。
    

    8、git status

    状态查询命令
    
    gitInstruction.jpg
          </div>
  • 相关阅读:
    取三级分销上下级用户id
    Map集合
    Log4j
    异常
    逻辑运算符
    变量
    变量名命名规则
    命名法
    Nessus
    Nmap扫描工具
  • 原文地址:https://www.cnblogs.com/duende99/p/11077722.html
Copyright © 2011-2022 走看看