码迷,mamicode.com
首页 > 其他好文 > 详细

my-git-wiki-doing

时间:2018-05-06 00:12:46      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:upstream   --   技术分享   UI   git init   分支   ini   src   setup   

github项目quick setup

技术分享图片

git初始化

git init

git添加remote

git remote add origin YOURS_REMOTE_URL

git修改remote的url

git remote set-url origin YOURS_NEW_REMOTE_URL

git设置push时当前branch对应的remote

git push --set-upstream origin master

查看远程和本地的所有分支

git branch -a

本地新增分支a

git checkout -b a

对应的远程新增分支a

git push :
git push origin a:a

删除远程分支

git push origin :a

使当前local分支追踪remote的某一分支

git branch --set-upstream-to=/ local-branch
git branch --set-upstream-to=origin/asset-manage asset-manage

my-git-wiki-doing

标签:upstream   --   技术分享   UI   git init   分支   ini   src   setup   

原文地址:https://www.cnblogs.com/Sir-Lin/p/8990666.html

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