码迷,mamicode.com
首页 > 系统相关 > 详细

mac-git-github创建push命令

时间:2020-03-07 21:06:48      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:rem   sed   done   word   img   创建   ict   mac   oca   

新建一个名称为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中,已经更新了

技术图片

 

mac-git-github创建push命令

标签:rem   sed   done   word   img   创建   ict   mac   oca   

原文地址:https://www.cnblogs.com/jpr-ok/p/12436306.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!