JAVA全系列 教程
3762个小节阅读:7094.5k
目录
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
xxxxxxxxxx
git clone https://gitee.com/WCCRegistered/hundred-battles.git wcc
git clone https://gitee.com/WCCRegistered/hundred-battles.git kalista
xxxxxxxxxx
git config --local -user.name ""
git config --local -user.email ""
第一用户修改一个文件并提交
xxxxxxxxxx
vim a.info
git commit -am"sumbit file"
git push
第二用户慢了一步在提交时发生了报错
xxxxxxxxxx
vim a.info
git commit -am"sumbit file2"
git push
报错:
$ git push To https://gitee.com/WCCRegistered/hundred-battles.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://gitee.com/WCCRegistered/hundred-battles.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
拉取最新的代码
xxxxxxxxxx
git pull
查看哪里冲突
xxxxxxxxxx
new
<<<<<<< HEAD
#你自己写的
this is baizhan
=======
#别人写的并且提交了的代码
public class HelloWorld{}
>>>>>>> 0b8b926afc79bd22d220bd0cb76ef7d97b5fb5d4
注意:
手动删除不要的代码。
重新提交
xxxxxxxxxx
git commit -am"修改了用户头像信息"
git push