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

 

posted @ 2019-07-10 17:12  php毛宏历的博客  阅读(330)  评论(0编辑  收藏  举报