首页 > 其他 > 详细

git远程写协作同步

时间:2019-10-27 20:41:58      阅读:78      评论:0      收藏:0      [点我收藏+]

1:创建一个要提交的文件
2 git init 初始化 
3 git remote add origin https://github.com/maohongli/cang.git 建立远程连接
4 git status
5 git add -A 创建
6 git commit -m "是" 
7 git push -u origin master 推送

用户名git config --global user.email 1031815407@qq.com 密码 git config --global user.name "maohongli"

分支合并


1 git checkout -b shop 切换分支
2 git add -A 创建 
3 git push -u origin shop 推进
4 git checkout master 切换master
5 git merge shop 合并shop分支
6 git push 推进

git远程写协作同步

原文:https://www.cnblogs.com/azzy/p/11748769.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!