zoukankan      html  css  js  c++  java
  • Git 推送文件到远程仓库

    Configure Git for the first time:

    git config --global user.name "xxxxx xx"
    git config --global user.email "xxxxx@xxxxx"

    git config --global color.ui true

    view git configuration:

    git config -l

    远程仓库已创建,克隆远程仓库到本地(进入对应的文件夹进行克隆):

    git clone xxxxxxxxxxxx

    克隆完成后,进入克隆的文件:

    cd  xxx

    git config --global commit.template ~/.ssh/commit_template

      

    初始化本地仓库

    git init 

    把你的项目扔进去

    git status //   查看状态

    git add -A //   提交所有文件改动

    git commit -m "xx" //备注功能

    git status //查看状态

    git remote add origin xxxxxxxxx     地址 // 连接接远程仓库步骤1

    git remote -v   //查看远程的仓库信息

    git remote rm origin   //删除已经存在的远程库

    git push -u origin master   //第一次推送到远程仓库

    git push origin master //推送修改文件到远程仓库

    git add -A //提交所有文件改动

    git status //查看状态

    git commit -m "xx" //备注功能

    git status //查看状态

    git pull origin master //拉最新代码 (下载)

    git push origin master //推送到远程 (上传)

    git remote add origin ssh地址 // 链接远程仓库步骤1

    git push -u origin master //链接远程仓库步骤2

  • 相关阅读:
    CheckBox单选功能
    DOTNET
    常用命令行
    不能调试的问题的解决
    url字符串中含有中文的处理
    案例:星移eWorkflow.net系统
    使用正则表达式求完整路径中的文件名
    缺少一个***.resource的报告的解决
    Mapx中的图元移动
    Distance计算的距离随经纬度不同
  • 原文地址:https://www.cnblogs.com/coxiseed/p/9257656.html
Copyright © 2011-2022 走看看