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‘: #输入github的登录名 Password for ‘https://@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中,已经更新了
相关推荐
LynnOhYeah 2020-07-18
Equation 2020-08-09
formula 2020-11-12
huhongfei 2020-11-05
乾坤一碼農 2020-10-27
liumengyanysu 2020-10-22
E哥的aws认证攻略 2020-10-15
tianyafengxin 2020-10-08
guying 2020-10-05
好脑筋不如烂笔头 2020-09-17
nebulali 2020-09-11
佛系程序员J 2020-09-15
fenggit 2020-09-15
JustHaveTry 2020-09-11
兄dei努力赚钱吧 2020-09-06
IngeniousIT 2020-08-25