目录
百战程序员,全站22050+开发课程+文档 ,学习精选优质好课快人一步!观看视频 快捷键ALT+N

JAVA全系列 教程

3762个小节阅读:7094.5k

收藏
全部开发者教程

C语言快速入门

JAVA全系列 教程

面向对象的程序设计语言

Python全系列 教程

Python3.x版本,未来主流的版本

人工智能 教程

顺势而为,AI创新未来

大厂算法 教程

算法,程序员自我提升必经之路

C++ 教程

一门通用计算机编程语言

微服务 教程

目前业界流行的框架组合

web前端全系列 教程

通向WEB技术世界的钥匙

大数据全系列 教程

站在云端操控万千数据

AIGC全能工具班

A

A A

White Night

阅读(2.8k)
赞(0)

Git远程仓库_多人协作冲突问题

img

为什么会出现冲突问题

  1. 不同分支下的合并
  2. 同一个分支下的pull后者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.

解决冲突

拉取最新的代码

查看哪里冲突

注意:

手动删除不要的代码。

重新提交

北京市昌平区回龙观镇南店村综合商业楼2楼226室

©2014-2023 百战卓越(北京)科技有限公司 All Rights Reserved.

京ICP备14032124号-2