git---第六篇 共享版本库 多人开发
2020-05-31 本文已影响0人
adalillian
正常的多人开发日常操作:
A 删掉本地的代码, 然后文件会变成M, 然后commit , "XXXXX", commit, 可以先commit再push, 可以先commit, 再push.
网络好就同时push, 网络不好就后push.
B 想要最新的代码, 就点击pull ... , 就可以了; 改变代码, commit, "xxxx",勾选push, 然后commit.
A 想要最新的代码, 就点击pull .
A 创建一个类, 然后文件会变成A, 然后你发现项目配置改变成M了, commit , “xxx" , 勾选push , 然后commit.
B 想要最新的代码, 就点击pull ... ,
冲突问题,解决办法:
B 修改代码 commit "xxx". 勾选push , 然后commit.
A 没有pull. 修改代码, commit "xxxx" , commit . 提交到本地版本库成功。 push, 报错, 本地版本过期, out of date,
pull..... , 提交c,冲突。 点一下C, 看到页面, 通过中间选择, 然后选择一个, 点击pull按钮。
commit, "修复了冲突",勾选push , 然后commit. 就会成功。
B 想要最新的代码, 就点击pull ... ,