zoukankan      html  css  js  c++  java
  • mac-git-github创建push命令

    新建一个名称为git_intro的仓库,需要用下下图标记的链接

     进行push操作:

    (base) localhost:Merge_Conflict ligaijiang$ git remote -v
    (base) localhost:Merge_Conflict ligaijiang$ git remote add origin_1 https://github.com/gaigai-ok/git_intro.git
    (base) localhost:Merge_Conflict ligaijiang$ git remote
    origin_1
    (base) localhost:Merge_Conflict ligaijiang$ git remote -v
    origin_1    https://github.com/gaigai-ok/git_intro.git (fetch)
    origin_1    https://github.com/gaigai-ok/git_intro.git (push)
        #add后的地址复制github里的地址
    (base) localhost:Merge_Conflict ligaijiang$  git remote add origin https://github.com/gaigai-ok/git_intro.git
    (base) localhost:Merge_Conflict ligaijiang$ git remote -v
    origin    https://github.com/gaigai-ok/git_intro.git (fetch)
    origin    https://github.com/gaigai-ok/git_intro.git (push)
    origin_1    https://github.com/gaigai-ok/git_intro.git (fetch)
    origin_1    https://github.com/gaigai-ok/git_intro.git (push)
        
    (base) localhost:Merge_Conflict ligaijiang$ git push origin master
    Username for 'https://github.com': jiangpr_ok@163.com  #输入github的登录名
    Password for 'https://jiangpr_ok@163.com@github.com':   #输入github的登录密码
    Enumerating objects: 16, done.
    Counting objects: 100% (16/16), done.
    Delta compression using up to 8 threads
    Compressing objects: 100% (6/6), done.
    Writing objects: 100% (16/16), 1.21 KiB | 1.21 MiB/s, done.
    Total 16 (delta 2), reused 0 (delta 0)
    remote: Resolving deltas: 100% (2/2), done.
    To https://github.com/gaigai-ok/git_intro.git
     * [new branch]      master -> master
    (base) localhost:Merge_Conflict ligaijiang$ 

    查看github中,已经更新了

  • 相关阅读:
    【Win10开发】相对布局——RelativePanel控件
    【Win10开发】关于AutoSuggestBox
    【Win10开发】自定义标题栏
    线上服务器CPU100%排查
    Rest接口单元测试
    hibernate validator参数校验&自定义校验注解
    JsonView视图
    跨域(SpringBoot)
    Mybatis的分支选择和In循环
    CentOS6.5使用yum安装mysql
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/12436306.html
Copyright © 2011-2022 走看看