zoukankan      html  css  js  c++  java
  • 更新GitHub的仓库

    在GitHub上仓库已经存在且提交过,本地仓库部分更新后推送至GitHub仓库

    添加,提交至本地仓库

    将改动文件添加并提交到仓库

    Roc@DESKTOP-AF552U2 MINGW64 /e/note/Git (master)
    $ git add 'git 报错 index file corrupt.md'
    
    Roc@DESKTOP-AF552U2 MINGW64 /e/note/Git (master)
    $ git commit -m '新增git提交到仓库报错分析'
    [master 0b068c4] 新增git提交到仓库报错分析
     1 file changed, 60 insertions(+)
     create mode 100644 "Git/git 346212245351224231 index file corrupt.md"
    

    拉取远程仓库

    拉取当前分支最新代码:

    • git pull
    Roc@DESKTOP-AF552U2 MINGW64 /e/note/Git (master)
    $ git pull
    Already up to date.
    

    推送到GitHub仓库

    push到远程master分支上:

    • git push origin master
    Roc@DESKTOP-AF552U2 MINGW64 /e/note/Git (master)
    $ git push origin master
    Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts.
    Enumerating objects: 31, done.
    Counting objects: 100% (31/31), done.
    Delta compression using up to 4 threads
    Compressing objects: 100% (25/25), done.
    Writing objects: 100% (25/25), 6.66 KiB | 1.11 MiB/s, done.
    Total 25 (delta 14), reused 0 (delta 0)
    remote: Resolving deltas: 100% (14/14), completed with 4 local objects.
    To github.com:RocsSun/note.git
       53ab25a..d9ccf3e  master -> master
    
  • 相关阅读:
    Nacos(六):多环境下如何“管理”及“隔离”配置和服务
    nginx 反向代理配置(二)
    nginx 反向代理配置(一)
    nginx的access_log与error_log
    MySQL 慢查询日志
    php-fpm 慢日志查询
    理解 OAuth2.0
    如何在 Apache 里修改 PHP 配置
    Go-常见的面试题(一)
    Go 嵌入类型
  • 原文地址:https://www.cnblogs.com/linga/p/10214857.html
Copyright © 2011-2022 走看看