git远程写协作同步 - Go语言中文社区

git远程写协作同步


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 推进

 

版权声明:本文来源博客园,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://www.cnblogs.com/maohongli/p/11165192.html
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2019-11-10 09:58:10
  • 阅读 ( 1173 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢