• git 推送本地项目到远程库


    git 推送本地项目到远程库

    1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha
    $ git init
    Initialized empty Git repository in E:/mozq/00store/01/haha/.git/
    
    1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha (master)
    $ git remote add origin git@192.168.1.254:devops/haha.git
    
    1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha (master)
    $ git remote -v
    origin  git@192.168.1.254:devops/haha.git (fetch)
    origin  git@192.168.1.254:devops/haha.git (push)
    
    1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha(master)
    $ git push
    fatal: The current branch master has no upstream branch.
    To push the current branch and set the remote as upstream, use
    git push --set-upstream origin master
    
    1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha(master)
    $ git branch -v
    
    - master 1c3869e 1st
    
    1@DESKTOP-3H9092J MINGW64 /e/mozq/00store/01/haha(master)
    $ git push origin master
    Enumerating objects: 25, done.
    Counting objects: 100% (25/25), done.
    Delta compression using up to 6 threads
    Compressing objects: 100% (15/15), done.
    Writing objects: 100% (25/25), 7.75 KiB | 1.94 MiB/s, done.
    Total 25 (delta 0), reused 0 (delta 0)
    To 192.168.1.254:devops/haha.git
    
    - [new branch]      master -> master
    
  • 相关阅读:
    安装 logstash
    ES 关于 Index、Type、Document
    java 获取 属性的注释(二)
    outlook 发件人 xxx 代替 xxx 的问题
    EDI 报文发送(拼箱实例)
    微服务拆分之道
    DDD 领域驱动设计之面向对象思想
    如何构建知识体系?
    架构思维:系统容量设计
    接口性能优化技巧
  • 原文地址:https://www.cnblogs.com/mozq/p/11772764.html
Copyright © 2020-2023  润新知