社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

在IntelliJ中显示Git冲突

inconnu • 3 年前 • 1473 次点击  

我使用IntelliJ作为IDE,在Mac上使用终端执行Github命令。我做了一个 git rebase -i origin/main 有一些冲突和错误,比如:

error: could not apply 7d4bdfs7...
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".

如何在IntelliJ中显示这些冲突,以便手动合并它们?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/133424
文章 [ 2 ]  |  最新文章 3 年前
user404
Reply   •   1 楼
user404    3 年前

你可以安装 git gui 。之后,要查看更改或冲突,只需运行命令 git gui ,它将在基于GUI的视图中显示所有已更改/未限制的文件。

VonC
Reply   •   2 楼
VonC    3 年前

从…起 IntelliJ Resolve conflicts ,你应该:

如果在此对话框中单击“关闭”,或从命令行调用导致合并冲突的Git操作,则 合并冲突 节点将出现在 局部变化 通过链接查看以解决这些问题:

https://resources.jetbrains.com/help/img/idea/2021.2/git_merge_conflicts_node.png

从那里,单击其中一个条目,您将看到解决合并冲突的窗口:

https://resources.jetbrains.com/help/img/idea/2021.2/conflict_resolution_tool_legend.png

从…起 the discussion ,OP确认:

IntelliJ花了一些时间来显示合并冲突。
上一次我等的时间不够长,所以它是空的。